@Test public void testCreate() { AccessionCollection created = new AccessionCollection(); created.setCollNumb("test"); AccessionCollection actual = repository.save(created); assertNotNull("create did not work", actual); assertNotNull("couldn't generate id", actual.getId()); assertEquals("Common name is correct", "test", actual.getCollNumb()); }
@Test public void testFindById() { AccessionCollection actual = repository.findOne(1L); assertNotNull("did not find expected entity", actual); assertEquals((double) 1L, (double) actual.getId(), 0L); }