@Test public void testEmptyCreated() { final Site empty = siteRepository.load(); Assert.assertTrue(empty.getCopyRepositories().isEmpty()); Assert.assertTrue(empty.getDsbList().isEmpty()); Assert.assertTrue(empty.getPsbs().isEmpty()); Assert.assertEquals("my-site", empty.getName()); }
@Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; }
SiteRepositoryImpl implements SiteRepository, ServiceLifecycle { @Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; } }
SiteRepositoryImpl implements SiteRepository, ServiceLifecycle { @Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; } SiteRepositoryImpl();  SiteRepositoryImpl(
            String siteName,
            DataSource dataSource,
            SerializationWriter<DbSite> writer,
            SerializationReader<DbSite> reader,
            ArtifactRegistryFactory artifactRegistryFactory,
            WebAPIResolver resolver); }
SiteRepositoryImpl implements SiteRepository, ServiceLifecycle { @Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; } SiteRepositoryImpl();  SiteRepositoryImpl(
            String siteName,
            DataSource dataSource,
            SerializationWriter<DbSite> writer,
            SerializationReader<DbSite> reader,
            ArtifactRegistryFactory artifactRegistryFactory,
            WebAPIResolver resolver); @Override void init(Context context); @Override void shutDown(); @Override Site load(); @Override void persist(Site site); }
SiteRepositoryImpl implements SiteRepository, ServiceLifecycle { @Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; } SiteRepositoryImpl();  SiteRepositoryImpl(
            String siteName,
            DataSource dataSource,
            SerializationWriter<DbSite> writer,
            SerializationReader<DbSite> reader,
            ArtifactRegistryFactory artifactRegistryFactory,
            WebAPIResolver resolver); @Override void init(Context context); @Override void shutDown(); @Override Site load(); @Override void persist(Site site);  }