Search in sources :

Example 1 with MavenProjectGenerator

use of org.eclipse.che.plugin.maven.server.projecttype.handler.MavenProjectGenerator in project che by eclipse.

the class MavenProjectTypeTest method setUp.

@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    Set<ProjectTypeDef> projTypes = new HashSet<>();
    projTypes.add(new JavaProjectType(new JavaValueProviderFactory()));
    projTypes.add(new MavenProjectType(new MavenValueProviderFactory()));
    ptRegistry = new ProjectTypeRegistry(projTypes);
    Set<ProjectHandler> handlers = new HashSet<>();
    handlers.add(new MavenProjectGenerator(Collections.<GeneratorStrategy>emptySet()));
    httpJsonRequest = mock(HttpJsonRequest.class, new SelfReturningAnswer());
}
Also used : ProjectTypeRegistry(org.eclipse.che.api.project.server.type.ProjectTypeRegistry) HttpJsonRequest(org.eclipse.che.api.core.rest.HttpJsonRequest) JavaValueProviderFactory(org.eclipse.che.plugin.java.server.projecttype.JavaValueProviderFactory) ProjectTypeDef(org.eclipse.che.api.project.server.type.ProjectTypeDef) ProjectHandler(org.eclipse.che.api.project.server.handlers.ProjectHandler) GeneratorStrategy(org.eclipse.che.plugin.maven.server.projecttype.handler.GeneratorStrategy) SelfReturningAnswer(org.eclipse.che.commons.test.mockito.answer.SelfReturningAnswer) MavenProjectGenerator(org.eclipse.che.plugin.maven.server.projecttype.handler.MavenProjectGenerator) JavaProjectType(org.eclipse.che.plugin.java.server.projecttype.JavaProjectType) HashSet(java.util.HashSet) Before(org.junit.Before)

Aggregations

HashSet (java.util.HashSet)1 HttpJsonRequest (org.eclipse.che.api.core.rest.HttpJsonRequest)1 ProjectHandler (org.eclipse.che.api.project.server.handlers.ProjectHandler)1 ProjectTypeDef (org.eclipse.che.api.project.server.type.ProjectTypeDef)1 ProjectTypeRegistry (org.eclipse.che.api.project.server.type.ProjectTypeRegistry)1 SelfReturningAnswer (org.eclipse.che.commons.test.mockito.answer.SelfReturningAnswer)1 JavaProjectType (org.eclipse.che.plugin.java.server.projecttype.JavaProjectType)1 JavaValueProviderFactory (org.eclipse.che.plugin.java.server.projecttype.JavaValueProviderFactory)1 GeneratorStrategy (org.eclipse.che.plugin.maven.server.projecttype.handler.GeneratorStrategy)1 MavenProjectGenerator (org.eclipse.che.plugin.maven.server.projecttype.handler.MavenProjectGenerator)1 Before (org.junit.Before)1