X4O: Formatted plugins and maisdoc
This commit is contained in:
parent
a61ce241e1
commit
bd4a04a813
63 changed files with 1690 additions and 1589 deletions
|
|
@ -34,36 +34,36 @@ import org.apache.tools.ant.BuildFileTest;
|
|||
* @version 1.0 Aug 23, 2012
|
||||
*/
|
||||
public class X4OWriteLanguageDocTaskTest extends BuildFileTest {
|
||||
|
||||
|
||||
public void setUp() {
|
||||
configureProject("src/test/resources/junit/test-write-language-doc.xml");
|
||||
}
|
||||
|
||||
|
||||
public void testEldDocCel() {
|
||||
executeTarget("test-elddoc-cel");
|
||||
File testDir = new File("target/test-elddoc/cel");
|
||||
int files = testDir.listFiles().length;
|
||||
assertEquals("Should created more then two files", true, files>2);
|
||||
assertEquals("Should created more then two files", true, files > 2);
|
||||
}
|
||||
|
||||
|
||||
public void testEldDocEld() {
|
||||
executeTarget("test-elddoc-eld");
|
||||
File testDir = new File("target/test-elddoc/eld");
|
||||
int files = testDir.listFiles().length;
|
||||
assertEquals("Should created more then two files", true, files>2);
|
||||
|
||||
///assertEquals("Message was logged but should not.", getLog(), "");
|
||||
//expectLog("use.message", "attribute-text");
|
||||
//assertLogContaining("Nested Element 1");
|
||||
assertEquals("Should created more then two files", true, files > 2);
|
||||
|
||||
/// assertEquals("Message was logged but should not.", getLog(), "");
|
||||
// expectLog("use.message", "attribute-text");
|
||||
// assertLogContaining("Nested Element 1");
|
||||
}
|
||||
|
||||
|
||||
public void testEldDocEldCustom() {
|
||||
executeTarget("test-elddoc-eld-custom");
|
||||
File testDir = new File("target/test-elddoc/eld-custom");
|
||||
int files = testDir.listFiles().length;
|
||||
assertEquals("Should created more then two files", true, files>2);
|
||||
assertEquals("Should created more then two files", true, files > 2);
|
||||
}
|
||||
|
||||
|
||||
public void testEldDocEldVerbose() {
|
||||
executeTarget("test-elddoc-cel-verbose");
|
||||
assertLogContaining("Verbose:");
|
||||
|
|
@ -72,15 +72,19 @@ public class X4OWriteLanguageDocTaskTest extends BuildFileTest {
|
|||
public void testFailAllMissing() {
|
||||
expectBuildException("test-fail-all", "Should get exception with no attributes.");
|
||||
}
|
||||
|
||||
public void testFailBasePath() {
|
||||
expectBuildException("test-fail-destdir", "Should get exception id destdir is not set.");
|
||||
}
|
||||
|
||||
public void testFailBasePathError() {
|
||||
expectBuildException("test-fail-destdir-error", "Should get exception id destdir does not exists.");
|
||||
}
|
||||
|
||||
public void testFailLanguage() {
|
||||
expectBuildException("test-fail-language", "Should get exception id language is not set.");
|
||||
}
|
||||
|
||||
public void testFailLanguageError() {
|
||||
expectBuildException("test-fail-language-error", "Should get exception id language throws error.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,25 +37,25 @@ public class X4OWriteLanguageSchemaTaskTest extends BuildFileTest {
|
|||
public void setUp() {
|
||||
configureProject("src/test/resources/junit/test-write-language-schema.xml");
|
||||
}
|
||||
|
||||
|
||||
public void testCelSchemaFull() {
|
||||
executeTarget("test-cel-schema-full");
|
||||
File testDir = new File("target/test-schemas/cel-full");
|
||||
int files = testDir.listFiles().length;
|
||||
assertEquals("Should created only 2 files", 2, files);
|
||||
}
|
||||
|
||||
|
||||
public void testCelSchemaSingle() {
|
||||
executeTarget("test-cel-schema-single");
|
||||
File testDir = new File("target/test-schemas/cel-single");
|
||||
int files = testDir.listFiles().length;
|
||||
assertEquals("Should created only one file", 1, files);
|
||||
|
||||
///assertEquals("Message was logged but should not.", getLog(), "");
|
||||
//expectLog("use.message", "attribute-text");
|
||||
//assertLogContaining("Nested Element 1");
|
||||
|
||||
/// assertEquals("Message was logged but should not.", getLog(), "");
|
||||
// expectLog("use.message", "attribute-text");
|
||||
// assertLogContaining("Nested Element 1");
|
||||
}
|
||||
|
||||
|
||||
public void testCelSchemaVerbose() {
|
||||
executeTarget("test-cel-schema-verbose");
|
||||
assertLogContaining("Verbose:");
|
||||
|
|
@ -64,15 +64,19 @@ public class X4OWriteLanguageSchemaTaskTest extends BuildFileTest {
|
|||
public void testFailAllMissing() {
|
||||
expectBuildException("test-fail-all", "Should get exception if no attributes are set.");
|
||||
}
|
||||
|
||||
public void testFailBasePath() {
|
||||
expectBuildException("test-fail-destdir", "Should get exception id destdir is not set.");
|
||||
}
|
||||
|
||||
public void testFailBasePathError() {
|
||||
expectBuildException("test-fail-destdir-error", "Should get exception id destdir does not exists.");
|
||||
}
|
||||
|
||||
public void testFailLanguage() {
|
||||
expectBuildException("test-fail-language", "Should get exception id language is not set.");
|
||||
}
|
||||
|
||||
public void testFailLanguageError() {
|
||||
expectBuildException("test-fail-language-error", "Should get exception id language throws error.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue