JBoss Rich Faces SVN: r16630 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 12:00:21 -0400 (Thu, 18 Mar 2010)
New Revision: 16630
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/ClassDescriptionTest.java
Log:
RF-8232 Tags support
remove visitor
fix checkstyle errors
Modified: root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/ClassDescriptionTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/ClassDescriptionTest.java 2010-03-18 15:59:48 UTC (rev 16629)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/ClassDescriptionTest.java 2010-03-18 16:00:21 UTC (rev 16630)
@@ -23,16 +23,15 @@
package org.richfaces.cdk.model;
-import static org.junit.Assert.*;
-
-import java.util.Arrays;
-import java.util.Collection;
-
+import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
+import java.util.Arrays;
+import java.util.Collection;
+
/**
* <p class="changed_added_4_0">
* </p>
14 years, 9 months
JBoss Rich Faces SVN: r16629 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/validator.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:59:48 -0400 (Thu, 18 Mar 2010)
New Revision: 16629
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/validator/ModelValidatorTest.java
Log:
RF-8232 Tags support
remove visitor
fix checkstyle errors
Modified: root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/validator/ModelValidatorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/validator/ModelValidatorTest.java 2010-03-18 15:59:15 UTC (rev 16628)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/model/validator/ModelValidatorTest.java 2010-03-18 15:59:48 UTC (rev 16629)
@@ -22,10 +22,13 @@
package org.richfaces.cdk.model.validator;
-import static org.easymock.EasyMock.*;
-import static org.junit.Assert.*;
-
-import org.easymock.EasyMock;
+import com.google.inject.Inject;
+import static org.easymock.EasyMock.anyObject;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.expectLastCall;
+import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.verify;
+import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.richfaces.cdk.CdkTestBase;
@@ -39,10 +42,6 @@
import org.richfaces.cdk.model.ComponentModel;
import org.richfaces.cdk.model.FacesId;
-import com.google.inject.Inject;
-import org.richfaces.cdk.CdkTestRunner;
-import org.richfaces.cdk.CdkTestBase;
-
/**
* @author asmirnov
* @version $Id$
14 years, 9 months
JBoss Rich Faces SVN: r16628 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:59:15 -0400 (Thu, 18 Mar 2010)
New Revision: 16628
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/TagHandlerClassGeneratorTest.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/TagHandlerClassGeneratorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/TagHandlerClassGeneratorTest.java 2010-03-18 15:58:53 UTC (rev 16627)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/TagHandlerClassGeneratorTest.java 2010-03-18 15:59:15 UTC (rev 16628)
@@ -31,13 +31,10 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.richfaces.cdk.CdkTestRunner;
-import org.richfaces.cdk.Mock;
-import org.richfaces.cdk.NamingConventions;
import org.richfaces.cdk.generate.java.taghandler.TagHandlerClassGenerator;
import org.richfaces.cdk.model.ClassName;
import org.richfaces.cdk.model.ComponentModel;
import org.richfaces.cdk.model.TagModel;
-import org.richfaces.cdk.model.validator.ValidatorImpl;
import javax.faces.view.facelets.ComponentHandler;
import java.io.StringWriter;
@@ -70,7 +67,7 @@
generator.process(tagModel);
- System.out.println(outputWriter);
+// System.out.println(outputWriter);
verify(output);
compare(outputWriter, "GeneratedTagHandler.java");
14 years, 9 months
JBoss Rich Faces SVN: r16627 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:58:53 -0400 (Thu, 18 Mar 2010)
New Revision: 16627
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ConverterClassGeneratorTest.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/ConverterClassGeneratorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ConverterClassGeneratorTest.java 2010-03-18 15:57:39 UTC (rev 16626)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ConverterClassGeneratorTest.java 2010-03-18 15:58:53 UTC (rev 16627)
@@ -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.EventName;
import org.richfaces.cdk.model.FacesId;
-import com.google.inject.Inject;
+import java.io.StringWriter;
+import java.util.Set;
/**
* @author akolonitsky
@@ -73,7 +75,7 @@
ComponentLibrary library = new ComponentLibrary();
library.getConverters().add(converter);
- generator.visit(converter, library);
+ generator.generate(converter);
// System.out.println(outputWriter);
verify(output);
14 years, 9 months
JBoss Rich Faces SVN: r16626 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
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);
14 years, 9 months
JBoss Rich Faces SVN: r16625 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:56:10 -0400 (Thu, 18 Mar 2010)
New Revision: 16625
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ComponentClassGeneratorTest.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/ComponentClassGeneratorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ComponentClassGeneratorTest.java 2010-03-18 15:55:41 UTC (rev 16624)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/ComponentClassGeneratorTest.java 2010-03-18 15:56:10 UTC (rev 16625)
@@ -68,8 +68,8 @@
library.getComponents().add(component);
- generator.visit(component, library);
- System.out.println(outputWriter);
+ generator.generate(component);
+// System.out.println(outputWriter);
verify(output);
compare(outputWriter, "GeneratedComponent.java");
14 years, 9 months
JBoss Rich Faces SVN: r16624 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:55:41 -0400 (Thu, 18 Mar 2010)
New Revision: 16624
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/BehaviorClassGeneratorTest.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/BehaviorClassGeneratorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/BehaviorClassGeneratorTest.java 2010-03-18 15:55:18 UTC (rev 16623)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/BehaviorClassGeneratorTest.java 2010-03-18 15:55:41 UTC (rev 16624)
@@ -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.FacesId;
import org.richfaces.cdk.model.Property;
-import com.google.inject.Inject;
+import java.io.StringWriter;
+import java.util.Set;
/**
* @author akolonitsky
@@ -71,7 +73,7 @@
ComponentLibrary library = new ComponentLibrary();
library.getBehaviors().add(behavior);
- generator.visit(behavior, library);
+ generator.generate(behavior);
// System.out.println(outputWriter);
verify(output);
14 years, 9 months
JBoss Rich Faces SVN: r16623 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:55:18 -0400 (Thu, 18 Mar 2010)
New Revision: 16623
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/AbstractClassGeneratorTest.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/AbstractClassGeneratorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/AbstractClassGeneratorTest.java 2010-03-18 15:54:51 UTC (rev 16622)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/generate/java/AbstractClassGeneratorTest.java 2010-03-18 15:55:18 UTC (rev 16623)
@@ -22,14 +22,9 @@
package org.richfaces.cdk.generate.java;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.LineNumberReader;
-import java.io.Reader;
-import java.io.StringReader;
-import java.io.StringWriter;
-
+import com.google.inject.Inject;
+import freemarker.template.Configuration;
+import freemarker.template.ObjectWrapper;
import org.junit.Assert;
import org.richfaces.cdk.As;
import org.richfaces.cdk.CdkTestBase;
@@ -40,13 +35,19 @@
import org.richfaces.cdk.freemarker.CdkConfiguration;
import org.richfaces.cdk.freemarker.LibraryModelWrapper;
import org.richfaces.cdk.model.ClassName;
-import org.richfaces.cdk.model.*;
+import org.richfaces.cdk.model.ComponentLibrary;
+import org.richfaces.cdk.model.EventName;
+import org.richfaces.cdk.model.ModelElementBase;
+import org.richfaces.cdk.model.Property;
-import com.google.inject.Inject;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.LineNumberReader;
+import java.io.Reader;
+import java.io.StringReader;
+import java.io.StringWriter;
-import freemarker.template.Configuration;
-import freemarker.template.ObjectWrapper;
-
/**
* @author akolonitsky
* @since Jan 20, 2010
14 years, 9 months
JBoss Rich Faces SVN: r16622 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:54:51 -0400 (Thu, 18 Mar 2010)
New Revision: 16622
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/ValidatorProcessorTest.java
Log:
RF-8232 Tags support
remove visitor
fix checkstyle errors
Modified: root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/ValidatorProcessorTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/ValidatorProcessorTest.java 2010-03-18 15:53:36 UTC (rev 16621)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/ValidatorProcessorTest.java 2010-03-18 15:54:51 UTC (rev 16622)
@@ -21,19 +21,11 @@
package org.richfaces.cdk.apt;
-import static org.junit.Assert.*;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.lang.model.element.Modifier;
-import javax.lang.model.element.Name;
-import javax.lang.model.element.TypeElement;
-
+import com.google.inject.Inject;
import org.easymock.EasyMock;
import org.junit.Assert;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -43,7 +35,13 @@
import org.richfaces.cdk.model.FacesId;
import org.richfaces.cdk.model.ValidatorModel;
-import com.google.inject.Inject;
+import javax.lang.model.element.Modifier;
+import javax.lang.model.element.Name;
+import javax.lang.model.element.TypeElement;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
/**
* @author akolonitsky
@@ -150,7 +148,7 @@
JsfValidator validator = null;
if (isAnnotationDefined) {
validator = EasyMock.createMock(JsfValidator.class);
- EasyMock.expect(validator.validatorClass()).andReturn(validatorClass);
+ EasyMock.expect(validator.generate()).andReturn(validatorClass);
EasyMock.replay(validator);
}
14 years, 9 months
JBoss Rich Faces SVN: r16621 - root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-03-18 11:53:36 -0400 (Thu, 18 Mar 2010)
New Revision: 16621
Modified:
root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/TaskFactoryTest.java
Log:
RF-8232 Tags support
remove visitor
fix checkstyle errors
Modified: root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/TaskFactoryTest.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/TaskFactoryTest.java 2010-03-18 15:53:08 UTC (rev 16620)
+++ root/cdk/trunk/plugins/generator/src/test/java/org/richfaces/cdk/apt/TaskFactoryTest.java 2010-03-18 15:53:36 UTC (rev 16621)
@@ -23,22 +23,21 @@
package org.richfaces.cdk.apt;
-import static org.easymock.EasyMock.*;
-import static org.junit.Assert.*;
-
-import java.util.Collections;
-import java.util.Set;
-
-import javax.annotation.processing.ProcessingEnvironment;
-import javax.annotation.processing.Processor;
-import javax.annotation.processing.RoundEnvironment;
-import javax.lang.model.SourceVersion;
-import javax.lang.model.element.TypeElement;
-import javax.tools.JavaCompiler.CompilationTask;
-
+import com.google.common.collect.ImmutableList;
+import com.google.inject.Inject;
import org.easymock.Capture;
import org.easymock.CaptureType;
import org.easymock.EasyMock;
+import static org.easymock.EasyMock.anyObject;
+import static org.easymock.EasyMock.capture;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.expectLastCall;
+import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.verify;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.richfaces.cdk.CdkTestRunner;
@@ -48,8 +47,14 @@
import org.richfaces.cdk.Outputs;
import org.richfaces.cdk.Stub;
-import com.google.common.collect.ImmutableList;
-import com.google.inject.Inject;
+import javax.annotation.processing.ProcessingEnvironment;
+import javax.annotation.processing.Processor;
+import javax.annotation.processing.RoundEnvironment;
+import javax.lang.model.SourceVersion;
+import javax.lang.model.element.TypeElement;
+import javax.tools.JavaCompiler.CompilationTask;
+import java.util.Collections;
+import java.util.Set;
/**
* <p class="changed_added_4_0">
14 years, 9 months