Search in sources :

Example 26 with StackImpl

use of org.eclipse.che.api.workspace.server.model.impl.stack.StackImpl in project che by eclipse.

the class StackDaoTest method shouldCreateStack.

@Test(dependsOnMethods = "shouldGetById")
public void shouldCreateStack() throws Exception {
    final StackImpl stack = createStack("new-stack", "new-stack-name");
    stackDao.create(stack);
    assertEquals(stackDao.getById(stack.getId()), new StackImpl(stack));
}
Also used : StackImpl(org.eclipse.che.api.workspace.server.model.impl.stack.StackImpl) Test(org.testng.annotations.Test)

Aggregations

StackImpl (org.eclipse.che.api.workspace.server.model.impl.stack.StackImpl)26 Test (org.testng.annotations.Test)15 ApiOperation (io.swagger.annotations.ApiOperation)5 ApiResponses (io.swagger.annotations.ApiResponses)5 GenerateLink (org.eclipse.che.api.core.rest.annotations.GenerateLink)5 Response (com.jayway.restassured.response.Response)4 Path (javax.ws.rs.Path)4 Produces (javax.ws.rs.Produces)4 StackIcon (org.eclipse.che.api.workspace.server.stack.image.StackIcon)4 Consumes (javax.ws.rs.Consumes)3 NotFoundException (org.eclipse.che.api.core.NotFoundException)3 StackDto (org.eclipse.che.api.workspace.shared.dto.stack.StackDto)3 TypeLiteral (com.google.inject.TypeLiteral)2 Transactional (com.google.inject.persist.Transactional)2 EntityManager (javax.persistence.EntityManager)2 POST (javax.ws.rs.POST)2 AccountImpl (org.eclipse.che.account.spi.AccountImpl)2 ConflictException (org.eclipse.che.api.core.ConflictException)2 ServerException (org.eclipse.che.api.core.ServerException)2 WorkspaceConfigImpl (org.eclipse.che.api.workspace.server.model.impl.WorkspaceConfigImpl)2