Author: Alex.Kolonitsky
Date: 2010-03-18 11:57:39 -0400 (Thu, 18 Mar 2010)
New Revision: 16626
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ValidatorClassGeneratorTest.java
Log:
RF-8232 Tags support
remove visitor
fix checkstyle errors
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ValidatorClassGeneratorTest.java
===================================================================
---
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ValidatorClassGeneratorTest.java 2010-03-18
15:56:10 UTC (rev 16625)
+++
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ValidatorClassGeneratorTest.java 2010-03-18
15:57:39 UTC (rev 16626)
@@ -22,11 +22,12 @@
package org.richfaces.cdk.generate.java;
-import static org.easymock.EasyMock.*;
-
-import java.io.StringWriter;
-import java.util.Set;
-
+import com.google.inject.Inject;
+import static org.easymock.EasyMock.anyInt;
+import static org.easymock.EasyMock.anyObject;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.verify;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.richfaces.cdk.CdkTestRunner;
@@ -37,7 +38,8 @@
import org.richfaces.cdk.model.Property;
import org.richfaces.cdk.model.ValidatorModel;
-import com.google.inject.Inject;
+import java.io.StringWriter;
+import java.util.Set;
/**
* @author akolonitsky
@@ -71,7 +73,7 @@
ComponentLibrary library = new ComponentLibrary();
library.getValidators().add(validator);
- generator.visit(validator, library);
+ generator.generate(validator);
// System.out.println(outputWriter);
verify(output);