Skip to content

Commit 8de54d7

Browse files
author
Alexander Garagatyi
committed
Fix occasionally failing tests
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
1 parent d4de1d9 commit 8de54d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/stack

wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/stack/StackServiceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.mockito.InjectMocks;
4242
import org.mockito.Mock;
4343
import org.mockito.testng.MockitoTestNGListener;
44-
import org.testng.annotations.BeforeClass;
4544
import org.testng.annotations.BeforeMethod;
4645
import org.testng.annotations.Listeners;
4746
import org.testng.annotations.Test;
@@ -136,7 +135,7 @@ public class StackServiceTest {
136135
@InjectMocks
137136
StackService service;
138137

139-
@BeforeClass
138+
@BeforeMethod
140139
public void setUp() throws IOException, ConflictException {
141140
byte[] fileContent = STACK_ID.getBytes();
142141
stackIcon = new StackIcon(ICON_MEDIA_TYPE, "image/svg+xml", fileContent);

0 commit comments

Comments
 (0)