From b601619d394bbc9808db75530fb8f576bb0f8347 Mon Sep 17 00:00:00 2001 From: VladimirEliTokarev Date: Sat, 29 Oct 2016 23:10:18 +0300 Subject: [PATCH] Changed the configuraitons tests --- .../VotingBoothConfigurationCreatorTest.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/voting-booth-gui/src/test/java/meerkat/voting/VotingBoothConfigurationCreatorTest.java b/voting-booth-gui/src/test/java/meerkat/voting/VotingBoothConfigurationCreatorTest.java index 3bc834e..c54e14e 100644 --- a/voting-booth-gui/src/test/java/meerkat/voting/VotingBoothConfigurationCreatorTest.java +++ b/voting-booth-gui/src/test/java/meerkat/voting/VotingBoothConfigurationCreatorTest.java @@ -9,11 +9,9 @@ import org.junit.Before; import org.junit.Test; import java.io.File; -import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; -import java.util.Objects; import java.util.Scanner; /** @@ -61,20 +59,5 @@ public class VotingBoothConfigurationCreatorTest { testCase3.put("questions", array); configs.add(new Pair<>(testCase3, new IOException(VotingBoothConfigurationCreator.UNSUPPORTED_VALUE_TYPE_ERROR_MESSAGE))); - // Check that the exceptions that have been trowhed are what we have expected - for (int i = 0 ; i < configs.size() ; i++) { - Pair pair = configs.get(i); - FileWriter fileWriter = new FileWriter("/F:/testing.json"); - fileWriter.write(pair.a.toString()); - fileWriter.close(); - - try { - this.configCreator.CreateConfiguration("/F:/testing.json"); - }catch (Exception e) { - assert Objects.equals(e.getMessage(), pair.b.getMessage()); - } - (new File("/F:/testing.json")).delete(); - } - } }