Search in sources :

Example 6 with SvnMaterialInstance

use of com.thoughtworks.go.domain.materials.svn.SvnMaterialInstance in project gocd by gocd.

the class MaterialRepositoryIntegrationTest method shouldPersistModificationsWithMaterials.

@Test
public void shouldPersistModificationsWithMaterials() throws Exception {
    MaterialInstance original = new SvnMaterialInstance("url", "username", UUID.randomUUID().toString(), false);
    repo.saveOrUpdate(original);
    MaterialInstance loaded = repo.find(original.getId());
    assertThat(loaded, is(original));
}
Also used : PackageMaterialInstance(com.thoughtworks.go.domain.materials.packagematerial.PackageMaterialInstance) PluggableSCMMaterialInstance(com.thoughtworks.go.domain.materials.scm.PluggableSCMMaterialInstance) SvnMaterialInstance(com.thoughtworks.go.domain.materials.svn.SvnMaterialInstance) SvnMaterialInstance(com.thoughtworks.go.domain.materials.svn.SvnMaterialInstance) Test(org.junit.Test)

Aggregations

SvnMaterialInstance (com.thoughtworks.go.domain.materials.svn.SvnMaterialInstance)6 Test (org.junit.Test)5 PackageMaterialInstance (com.thoughtworks.go.domain.materials.packagematerial.PackageMaterialInstance)3 PluggableSCMMaterialInstance (com.thoughtworks.go.domain.materials.scm.PluggableSCMMaterialInstance)3 Modification (com.thoughtworks.go.domain.materials.Modification)2 Gson (com.google.gson.Gson)1 ScmMaterial (com.thoughtworks.go.config.materials.ScmMaterial)1 DependencyMaterial (com.thoughtworks.go.config.materials.dependency.DependencyMaterial)1 SvnMaterial (com.thoughtworks.go.config.materials.svn.SvnMaterial)1 MaterialInstance (com.thoughtworks.go.domain.MaterialInstance)1 Material (com.thoughtworks.go.domain.materials.Material)1 Modifications (com.thoughtworks.go.domain.materials.Modifications)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1