Search in sources :

Example 1 with SpyRepository

use of org.apache.sling.ide.test.impl.helpers.SpyRepository in project sling by apache.

the class ResourceChangeCommandFactoryTest method setUp.

@Before
public void setUp() throws Exception {
    // create faceted project
    contentProject = projectRule.getProject();
    project = new ProjectAdapter(contentProject);
    project.addNatures("org.eclipse.wst.common.project.facet.core.nature");
    // install content facet
    project.installFacet("sling.content", "1.0");
    // create filter.xml
    project.createVltFilterWithRoots("/content");
    Set<String> ignoredFileNames = new HashSet<>();
    ignoredFileNames.add(".gitignore");
    factory = new ResourceChangeCommandFactory(Activator.getDefault().getSerializationManager(), ignoredFileNames);
    spyRepo = new SpyRepository();
}
Also used : SpyRepository(org.apache.sling.ide.test.impl.helpers.SpyRepository) ResourceChangeCommandFactory(org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory) ProjectAdapter(org.apache.sling.ide.test.impl.helpers.ProjectAdapter) HashSet(java.util.HashSet) Before(org.junit.Before)

Aggregations

HashSet (java.util.HashSet)1 ResourceChangeCommandFactory (org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory)1 ProjectAdapter (org.apache.sling.ide.test.impl.helpers.ProjectAdapter)1 SpyRepository (org.apache.sling.ide.test.impl.helpers.SpyRepository)1 Before (org.junit.Before)1