@Test public void testConversionEmpty() { dbStack.setNetwork(null); dbStack.setDatabaseServer(null); dbStack.setTags(null); dbStack.setParameters(null); dbStack.setTemplate(null); DatabaseStack convertedStack = underTest.convert(dbStack); assertNull(convertedStack.getNetwork()); assertNull(convertedStack.getDatabaseServer()); assertNull(convertedStack.getTemplate()); assertEquals(0, convertedStack.getTags().size()); }
public DatabaseStack convert(DBStack dbStack) { Network network = buildNetwork(dbStack); DatabaseServer databaseServer = buildDatabaseServer(dbStack); return new DatabaseStack(network, databaseServer, getUserDefinedTags(dbStack), dbStack.getTemplate()); }
DBStackToDatabaseStackConverter { public DatabaseStack convert(DBStack dbStack) { Network network = buildNetwork(dbStack); DatabaseServer databaseServer = buildDatabaseServer(dbStack); return new DatabaseStack(network, databaseServer, getUserDefinedTags(dbStack), dbStack.getTemplate()); } }
DBStackToDatabaseStackConverter { public DatabaseStack convert(DBStack dbStack) { Network network = buildNetwork(dbStack); DatabaseServer databaseServer = buildDatabaseServer(dbStack); return new DatabaseStack(network, databaseServer, getUserDefinedTags(dbStack), dbStack.getTemplate()); }  }
DBStackToDatabaseStackConverter { public DatabaseStack convert(DBStack dbStack) { Network network = buildNetwork(dbStack); DatabaseServer databaseServer = buildDatabaseServer(dbStack); return new DatabaseStack(network, databaseServer, getUserDefinedTags(dbStack), dbStack.getTemplate()); }  DatabaseStack convert(DBStack dbStack); }
DBStackToDatabaseStackConverter { public DatabaseStack convert(DBStack dbStack) { Network network = buildNetwork(dbStack); DatabaseServer databaseServer = buildDatabaseServer(dbStack); return new DatabaseStack(network, databaseServer, getUserDefinedTags(dbStack), dbStack.getTemplate()); }  DatabaseStack convert(DBStack dbStack);  }