empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1182433 - in /incubator/empire-db/trunk/empire-db-codegen/src: main/java/org/apache/empire/db/codegen/CodeGenApp.java test/java/org/apache/empire/db/codegen/CodeGenAppTest.java
Date Wed, 12 Oct 2011 15:33:39 GMT
Author: doebele
Date: Wed Oct 12 15:33:38 2011
New Revision: 1182433

URL: http://svn.apache.org/viewvc?rev=1182433&view=rev
Log:
Just a small enhancement to the CodeGenerator main class

Removed:
    incubator/empire-db/trunk/empire-db-codegen/src/main/java/org/apache/empire/db/codegen/CodeGenApp.java
Modified:
    incubator/empire-db/trunk/empire-db-codegen/src/test/java/org/apache/empire/db/codegen/CodeGenAppTest.java

Modified: incubator/empire-db/trunk/empire-db-codegen/src/test/java/org/apache/empire/db/codegen/CodeGenAppTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-codegen/src/test/java/org/apache/empire/db/codegen/CodeGenAppTest.java?rev=1182433&r1=1182432&r2=1182433&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-codegen/src/test/java/org/apache/empire/db/codegen/CodeGenAppTest.java
(original)
+++ incubator/empire-db/trunk/empire-db-codegen/src/test/java/org/apache/empire/db/codegen/CodeGenAppTest.java
Wed Oct 12 15:33:38 2011
@@ -47,7 +47,7 @@ public class CodeGenAppTest {
 		String[] args = new String[]{"src/test/resources/testconfig.xml"};
 		
 		// execute app
-		CodeGenApp.main(args);
+		CodeGenerator.main(args);
 		
 		// expected files
 		File expected = new File("target/generated/dbsample/org/apache/empire/db/samples/dbsample/SampleDB.java");
@@ -57,7 +57,7 @@ public class CodeGenAppTest {
 	@Test
 	public void testMainDefaultTemplateFolderNested() {
 		String[] args = new String[]{"src/test/resources/testconfig_default_template_folder_nested.xml"};
-		CodeGenApp.main(args);
+		CodeGenerator.main(args);
 		File expectedFile = new File("target/generated/dbsample/org/apache/empire/db/samples/dbsample/SampleDB.java");
 		
 		// the string to be expected within the DB class file
@@ -85,7 +85,7 @@ public class CodeGenAppTest {
 		String[] args = new String[]{"src/test/resources/testconfig_using_template_folder.xml"};
 		
 		// execute app
-		CodeGenApp.main(args);
+		CodeGenerator.main(args);
 		
 		// expected files
 		File expected = new File("target/generated/dbsample/org/apache/empire/db/samples/dbsample/SampleDB.java");
@@ -96,7 +96,7 @@ public class CodeGenAppTest {
 	public void testMainFailInvalidTemplateFolder() {
 		String[] args = new String[]{"src/test/resources/testconfig_invalid_template_folder.xml"};
 		try{
-			CodeGenApp.main(args);
+			CodeGenerator.main(args);
 			fail("This should fail as the template path is missing");
 		}catch(RuntimeException ex){
 			assertTrue("Wrong message", ex.getMessage().startsWith("Provided template folder missing
or not readable:"));



Mime
View raw message