Package br.com.objectos.way.etc

Examples of br.com.objectos.way.etc.Config.loadAs()


        .user(USER_A)
        .build();

    Config config = configProvider.get();
    String data = config.toString(global);
    Global res = config.loadAs(data, Global.class);

    User user = res.getUser();
    assertThat(user.getName(), equalTo(USER_A.getName()));
    assertThat(user.getEmail(), equalTo(USER_A.getEmail()));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.