Commit f7341cb4 authored by Robert Smith's avatar Robert Smith

Merge remote-tracking branch 'origin/2.2.2' into next

parents d00cc09c e279aa4e
......@@ -95,11 +95,9 @@ public class VibeKVPairTester {
return;
}
/**
* Test the constructor and make sure that all of the information is
* entered in correctly.
* Test the constructor and make sure that all of the information is entered
* in correctly.
*/
@Test
public void checkConstruction() {
......@@ -109,7 +107,8 @@ public class VibeKVPairTester {
// check to see if the form exists, and the item is setup correctly.
assertEquals("VIBE Key-Value Pair", vibeKVPair.getName());
assertEquals("Generate input files for VIBE.",vibeKVPair.getDescription());
assertEquals("Generate input files for VIBE.",
vibeKVPair.getDescription());
// Try with project not as null
IProject project = projectSpace;
......@@ -117,7 +116,8 @@ public class VibeKVPairTester {
// check to see if the form exists, and the item is setup correctly.
assertEquals("VIBE Key-Value Pair", vibeKVPair.getName());
assertEquals("Generate input files for VIBE.", vibeKVPair.getDescription());
assertEquals("Generate input files for VIBE.",
vibeKVPair.getDescription());
}
/**
......@@ -134,7 +134,8 @@ public class VibeKVPairTester {
// Check values stored on the form
// Check to see if executable exists
assertEquals("VIBE Key-Value Pair", vibeKVPair.getName());
assertEquals("Generate input files for VIBE.", vibeKVPair.getDescription());
assertEquals("Generate input files for VIBE.",
vibeKVPair.getDescription());
}
/**
......@@ -151,7 +152,7 @@ public class VibeKVPairTester {
// Check default contents
form = vibeKVPair.getForm();
assertNotNull(form.getComponents());
assertEquals(1, form.getComponents().size());
assertEquals(2, form.getComponents().size());
// Since there are entries and DataComponents, lets run the test!
// Now try to pass it the wrong information into the process
......@@ -163,11 +164,14 @@ public class VibeKVPairTester {
vibeKVPair.process("Export to key-value pair output"));
form = vibeKVPair.getForm();
assertNotNull(form.getComponents());
assertEquals(1, form.getComponents().size());
assertTrue(projectSpace.getFile(
"VIBE_Key-Value_Pair_" + vibeKVPair.getId() + ".dat").exists());
assertEquals(2, form.getComponents().size());
assertTrue(projectSpace
.getFile("VIBE_Key-Value_Pair_" + vibeKVPair.getId() + ".dat")
.exists());
try {
projectSpace.getFile("VIBE_Key-Value_Pair_" + vibeKVPair.getId() + ".dat").delete(true, true, null);
projectSpace.getFile(
"VIBE_Key-Value_Pair_" + vibeKVPair.getId() + ".dat")
.delete(true, true, null);
} catch (CoreException e) {
e.printStackTrace();
fail("Could not delete test output file.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment