2223242526272829303132
assertEquals(count, dao.loadAll().size()); Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); List<Node> nodes = dao.loadAll(); assertEquals(2 + count, nodes.size());
2324252627282930313233
Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); List<Node> nodes = dao.loadAll(); assertEquals(2 + count, nodes.size()); Node fetchedFull = null;
5657585960616263646566
assertEquals(count, dao.loadAll().size()); Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); full.setDatabaseName("notBlahDatabase"); minimal.setUsername("minimus");
5758596061626364656667
Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); full.setDatabaseName("notBlahDatabase"); minimal.setUsername("minimus"); minimal.setPassword("maximus");
9899100101102103104105106107108
assertEquals(count, dao.loadAll().size()); Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); List<Node> nodes = dao.loadAll(); assertEquals(count + 2, nodes.size()); for (Node n : nodes)
99100101102103104105106107108109
Node full = createFullyPopulatedNode(); Node minimal = createMinimalNode(); dao.create(full); dao.create(minimal); List<Node> nodes = dao.loadAll(); assertEquals(count + 2, nodes.size()); for (Node n : nodes) dao.delete(n);