use of org.geotoolkit.sml.xml.v100.Member in project openstack4j by ContainX.
the class ImageV2Tests method testCreateMember.
public void testCreateMember() throws IOException {
respondWith(MEMBER_JSON);
String imageId = "4b434528-032b-4467-946c-b5880ce15c06";
String memberId = "66cabdfb14bd48d48402f7464bda7733";
Member member = osv3().imagesV2().createMember(imageId, memberId);
assertEquals(member.getStatus(), Member.MemberStatus.PENDING);
assertEquals(member.getImageId(), imageId);
assertEquals(member.getMemberId(), memberId);
}
use of org.geotoolkit.sml.xml.v100.Member in project openstack4j by ContainX.
the class ImageV2Tests method testGetMember.
public void testGetMember() throws IOException {
respondWith(MEMBER_JSON);
String imageId = "4b434528-032b-4467-946c-b5880ce15c06";
String memberId = "66cabdfb14bd48d48402f7464bda7733";
Member member = osv3().imagesV2().getMember(imageId, memberId);
assertEquals(member.getStatus(), Member.MemberStatus.PENDING);
assertEquals(member.getImageId(), imageId);
assertEquals(member.getMemberId(), memberId);
}
use of org.geotoolkit.sml.xml.v100.Member in project molgenis-emx2 by molgenis.
the class TestEmx2Roles method testRolesIO.
@Test
public void testRolesIO() {
// create user roles
schema.addMember("bofke", "Viewer");
TableStore store = new TableStoreForCsvInMemory();
// export
Emx2Members.outputRoles(store, schema);
// empty the database, verify
schema = schema.getDatabase().dropCreateSchema(TestEmx2Roles.class.getSimpleName());
assertEquals(0, schema.getMembers().size());
// import and see if consistent
Emx2Members.inputRoles(store, schema);
List<Member> members = schema.getMembers();
assertEquals("bofke", members.get(0).getUser());
assertEquals("Viewer", members.get(0).getRole());
}
use of org.geotoolkit.sml.xml.v100.Member in project eomcs-java by eomcs.
the class Exam0310 method main.
public static void main(String[] args) {
A<String, Integer, Member> obj = new A<>();
obj.v1 = new String("Hello");
obj.v2 = Integer.valueOf(100);
obj.v3 = new Member("홍길동", 20);
// 지정된 타입이 아닌 타입의 값을 설정한다면,
// obj.v1 = new Member("홍길동", 20); // 컴파일 오류!
// obj.v2 = new String("Hello"); // 컴파일 오류!
// obj.v3 = Integer.valueOf(100); // 컴파일 오류!
}
use of org.geotoolkit.sml.xml.v100.Member in project LectureContents by KHWeb19.
the class Second29thMemberController method viewInfo.
// 실제로는 아래 코드에서 리턴되는 member는 그냥 객체(메모리 주소)일 뿐인데
// 웹 상에서 출력되는 정보는 JSON 형태로 출력되었다.
// 이를 지원하는 녀석은 ResponseBody에 해당한다.
@ResponseBody
@GetMapping("/view-info")
public Member viewInfo() {
log.info("viewInfo()");
Member member = new Member();
log.info("member: " + member);
return member;
}
Aggregations