@Test public void testStoreVideoStoreMember2() { VideoStoreMember vsm = new VideoStoreMember(); VideoStoreMember expected = jpaVideoStoreMember.storeVideoStoreMember(vsm); assertNotNull(expected); assertNull(expected.getVideoStoreMemberID()); }
@Test public void testStoreVideoStoreMember() { VideoStoreMember vsm = new VideoStoreMember(); vsm.setLocation("location"); vsm.setName("bob"); vsm.setVideoStoreMemberID(1111112l); vsm.setUser(u); VideoStoreMember expected = jpaVideoStoreMember.storeVideoStoreMember(vsm); assertNotNull(expected); assertNotNull(expected.getVideoStoreMemberID()); assertEquals("location", vsm.getLocation()); assertEquals("bob", vsm.getName()); }
@Test public void testGetVideoStoreMemberByName() { VideoStoreMember vsm = jpaVideoStoreMember.getVideoStoreMemberByName("keri"); assertNotNull(vsm); assertEquals("keri", vsm.getName()); assertNotNull(vsm.getUser()); assertEquals("keri", vsm.getUser().getUsername()); assertEquals("keri", vsm.getUser().getPassword()); assertEquals(true, vsm.getUser().isEnabled()); assertEquals("Cork", vsm.getLocation()); assertEquals("122345456", vsm.getMemebershipNumber()); }
@Test public void testGetVideoStoreMemberByID() { VideoStoreMember vsm = jpaVideoStoreMember.getVideoStoreMemberByID(1l); assertNotNull(vsm); assertEquals("keri", vsm.getName()); assertNotNull(vsm.getUser()); assertEquals("keri", vsm.getUser().getUsername()); assertEquals("Cork", vsm.getLocation()); assertEquals("122345456", vsm.getMemebershipNumber()); }