From 1b944ed7bd5146cb50cf3c3a4d54acc18f45bb3e Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Mon, 19 Dec 2016 10:49:41 +0200 Subject: [PATCH 1/2] Fix test --- .../general/AbstractPerspectivePersistenceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java index 8bce4249aba..7320b1a465b 100644 --- a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java +++ b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java @@ -179,7 +179,7 @@ public List answer(InvocationOnMock invocationOnMock) t perspective.loadState(state); - verify(workBenchController).setSize(42d); + verify(workBenchController).setSize(100d); } @Test From 1b17fb8f3222d65426c5e5baf394786800336d68 Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Mon, 19 Dec 2016 10:56:38 +0200 Subject: [PATCH 2/2] code cleanup --- .../general/AbstractPerspectivePersistenceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java index 7320b1a465b..2f78798a904 100644 --- a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java +++ b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/workspace/perspectives/general/AbstractPerspectivePersistenceTest.java @@ -165,7 +165,7 @@ public void shouldRestorePartStackSize() throws Exception { partsArray.set(0, part); part.put("CLASS", "foo.Bar"); - partStack.put("SIZE", 42); + partStack.put("SIZE", 142); // partStackPresenter.getParts() must return non empty list final List partPresenters = new ArrayList<>(); @@ -179,7 +179,7 @@ public List answer(InvocationOnMock invocationOnMock) t perspective.loadState(state); - verify(workBenchController).setSize(100d); + verify(workBenchController).setSize(142d); } @Test