fixed javadoc warnings
This commit is contained in:
@@ -21,12 +21,8 @@ import junit.framework.TestCase;
|
||||
|
||||
import org.springframework.binding.convert.ConversionException;
|
||||
import org.springframework.binding.convert.converters.AbstractConverter;
|
||||
import org.springframework.binding.convert.service.StaticConversionExecutor;
|
||||
|
||||
/**
|
||||
* Test case for {@link StaticConversionExecutor}.
|
||||
*/
|
||||
public class ConversionExecutorImplTests extends TestCase {
|
||||
public class StaticConversionExecutorImplTests extends TestCase {
|
||||
|
||||
private StaticConversionExecutor conversionExecutor;
|
||||
|
||||
@@ -17,9 +17,6 @@ package org.springframework.binding.mapping;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the {@link org.springframework.binding.mapping.RequiredMapping}.
|
||||
*/
|
||||
public class MappingTests extends TestCase {
|
||||
|
||||
public void testMapping() {
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.springframework.faces.model.OneSelectionTrackingListDataModel;
|
||||
* Web Flow converters.
|
||||
*
|
||||
* <p>
|
||||
* In addition to the standard Web Flow conversion, this service provide conversion from a {@link List} into a
|
||||
* In addition to the standard Web Flow conversion, this service provide conversion from a list into a
|
||||
* {@link OneSelectionTrackingListDataModel} using a "dataModel" alias for the type.
|
||||
* </p>
|
||||
*
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* {@link Renderer} for the {@code <sf:ajaxEvent>} tag.
|
||||
* Renderer for the {@code <sf:ajaxEvent>} tag.
|
||||
*
|
||||
* @author Jeremy Grelle
|
||||
*
|
||||
|
||||
@@ -22,6 +22,7 @@ import java.util.Map;
|
||||
import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.render.Renderer;
|
||||
|
||||
/**
|
||||
* Base {@link Renderer} for typical faces components, handling the rendering for common {@link UIComponent} attributes.
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.io.IOException;
|
||||
|
||||
import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.render.Renderer;
|
||||
|
||||
import org.springframework.faces.ui.resource.ResourceHelper;
|
||||
|
||||
|
||||
@@ -105,13 +105,11 @@ abstract class BaseHtmlTagRenderer extends Renderer {
|
||||
protected abstract String getRenderedTagName(UIComponent component);
|
||||
|
||||
/**
|
||||
* @param component TODO
|
||||
* @return an array of the tag attributes to be rendered
|
||||
*/
|
||||
protected abstract String[] getAttributesToRender(UIComponent component);
|
||||
|
||||
/**
|
||||
* @param component TODO
|
||||
* @return a map that returns the bean property name for any attribute that doesn't map directly (i.e., the 'class'
|
||||
* attribute maps to the 'styleClass' bean property)
|
||||
*/
|
||||
@@ -120,8 +118,7 @@ abstract class BaseHtmlTagRenderer extends Renderer {
|
||||
};
|
||||
|
||||
/**
|
||||
* @param component TODO
|
||||
* @return a map of registered {@link RenderAttributeCallback}s for attributes that require special rendering logic
|
||||
* @return a map of registered RenderAttributeCallbacks for attributes that require special rendering logic
|
||||
*/
|
||||
protected Map getAttributeCallbacks(UIComponent component) {
|
||||
return Collections.EMPTY_MAP;
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.io.IOException;
|
||||
|
||||
import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.render.Renderer;
|
||||
|
||||
import org.springframework.faces.ui.resource.ResourceHelper;
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#createUniqueId()
|
||||
*/
|
||||
public String createUniqueId() {
|
||||
@@ -121,7 +120,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param expr
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#findComponent(java.lang.String)
|
||||
*/
|
||||
public UIComponent findComponent(String expr) {
|
||||
@@ -129,7 +127,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getAfterPhaseListener()
|
||||
*/
|
||||
public MethodExpression getAfterPhaseListener() {
|
||||
@@ -137,7 +134,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getAttributes()
|
||||
*/
|
||||
public Map getAttributes() {
|
||||
@@ -145,7 +141,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getBeforePhaseListener()
|
||||
*/
|
||||
public MethodExpression getBeforePhaseListener() {
|
||||
@@ -153,7 +148,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getChildCount()
|
||||
*/
|
||||
public int getChildCount() {
|
||||
@@ -161,7 +155,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getChildren()
|
||||
*/
|
||||
public List getChildren() {
|
||||
@@ -170,7 +163,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param context
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getClientId(javax.faces.context.FacesContext)
|
||||
*/
|
||||
public String getClientId(FacesContext context) {
|
||||
@@ -179,7 +171,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponent#getContainerClientId(javax.faces.context.FacesContext)
|
||||
*/
|
||||
public String getContainerClientId(FacesContext ctx) {
|
||||
@@ -188,7 +179,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getFacet(java.lang.String)
|
||||
*/
|
||||
public UIComponent getFacet(String name) {
|
||||
@@ -196,7 +186,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getFacetCount()
|
||||
*/
|
||||
public int getFacetCount() {
|
||||
@@ -204,7 +193,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getFacets()
|
||||
*/
|
||||
public Map getFacets() {
|
||||
@@ -212,7 +200,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getFacetsAndChildren()
|
||||
*/
|
||||
public Iterator getFacetsAndChildren() {
|
||||
@@ -220,7 +207,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getFamily()
|
||||
*/
|
||||
public String getFamily() {
|
||||
@@ -228,7 +214,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getId()
|
||||
*/
|
||||
public String getId() {
|
||||
@@ -236,7 +221,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getLocale()
|
||||
*/
|
||||
public Locale getLocale() {
|
||||
@@ -244,7 +228,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getParent()
|
||||
*/
|
||||
public UIComponent getParent() {
|
||||
@@ -252,7 +235,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getRendererType()
|
||||
*/
|
||||
public String getRendererType() {
|
||||
@@ -260,7 +242,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getRenderKitId()
|
||||
*/
|
||||
public String getRenderKitId() {
|
||||
@@ -268,7 +249,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#getRendersChildren()
|
||||
*/
|
||||
public boolean getRendersChildren() {
|
||||
@@ -277,7 +257,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* @return
|
||||
* @deprecated
|
||||
* @see javax.faces.component.UIComponentBase#getValueBinding(java.lang.String)
|
||||
*/
|
||||
@@ -287,7 +266,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponent#getValueExpression(java.lang.String)
|
||||
*/
|
||||
public ValueExpression getValueExpression(String name) {
|
||||
@@ -295,7 +273,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#getViewId()
|
||||
*/
|
||||
public String getViewId() {
|
||||
@@ -306,7 +283,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
* @param context
|
||||
* @param clientId
|
||||
* @param callback
|
||||
* @return
|
||||
* @throws FacesException
|
||||
* @see javax.faces.component.UIComponentBase#invokeOnComponent(javax.faces.context.FacesContext, java.lang.String,
|
||||
* javax.faces.component.ContextCallback)
|
||||
@@ -317,7 +293,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
@@ -325,7 +300,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#isTransient()
|
||||
*/
|
||||
public boolean isTransient() {
|
||||
@@ -333,7 +307,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param context
|
||||
* @see javax.faces.component.UIViewRoot#processApplication(javax.faces.context.FacesContext)
|
||||
*/
|
||||
public void processApplication(FacesContext context) {
|
||||
@@ -360,7 +333,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param context
|
||||
* @return
|
||||
* @see javax.faces.component.UIComponentBase#processSaveState(javax.faces.context.FacesContext)
|
||||
*/
|
||||
public Object processSaveState(FacesContext context) {
|
||||
@@ -410,7 +382,6 @@ public abstract class DelegatingViewRoot extends UIViewRoot {
|
||||
|
||||
/**
|
||||
* @param facesContext
|
||||
* @return
|
||||
* @see javax.faces.component.UIViewRoot#saveState(javax.faces.context.FacesContext)
|
||||
*/
|
||||
public Object saveState(FacesContext facesContext) {
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
*/
|
||||
package org.springframework.faces.webflow;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.faces.FacesException;
|
||||
import javax.faces.FactoryFinder;
|
||||
import javax.faces.context.FacesContext;
|
||||
@@ -71,7 +69,7 @@ public class FlowLifecycle extends Lifecycle {
|
||||
|
||||
/**
|
||||
* Delegates to the wrapped {@link Lifecycle}.
|
||||
* @throws IOException
|
||||
* @throws FacesException
|
||||
*/
|
||||
public void render(FacesContext context) throws FacesException {
|
||||
delegate.render(context);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.springframework.faces.webflow;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -49,8 +48,6 @@ public class JsfFinalResponseActionTests extends TestCase {
|
||||
|
||||
private PhaseListener trackingListener;
|
||||
|
||||
private StringWriter output = new StringWriter();
|
||||
|
||||
ExpressionParser parser = new WebFlowELExpressionParser(new ExpressionFactoryImpl());
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
@@ -18,10 +18,7 @@ import org.apache.shale.test.mock.MockResponseWriter;
|
||||
import org.apache.shale.test.mock.MockStateManager;
|
||||
import org.easymock.EasyMock;
|
||||
import org.springframework.faces.ui.AjaxViewRoot;
|
||||
import org.springframework.webflow.core.collection.LocalAttributeMap;
|
||||
import org.springframework.webflow.core.collection.MutableAttributeMap;
|
||||
import org.springframework.webflow.definition.FlowDefinition;
|
||||
import org.springframework.webflow.definition.StateDefinition;
|
||||
import org.springframework.webflow.execution.FlowExecutionContext;
|
||||
import org.springframework.webflow.execution.FlowExecutionKey;
|
||||
import org.springframework.webflow.execution.RequestContext;
|
||||
@@ -260,37 +257,4 @@ public class JsfViewTests extends TestCase {
|
||||
executed = true;
|
||||
}
|
||||
}
|
||||
|
||||
private class ModalViewState implements StateDefinition {
|
||||
|
||||
MutableAttributeMap attrs = new LocalAttributeMap();
|
||||
|
||||
public boolean isViewState() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public ModalViewState() {
|
||||
attrs.asMap().put("modal", Boolean.TRUE);
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
throw new UnsupportedOperationException("Auto-generated method stub");
|
||||
}
|
||||
|
||||
public FlowDefinition getOwner() {
|
||||
throw new UnsupportedOperationException("Auto-generated method stub");
|
||||
}
|
||||
|
||||
public MutableAttributeMap getAttributes() {
|
||||
return attrs;
|
||||
}
|
||||
|
||||
public String getCaption() {
|
||||
throw new UnsupportedOperationException("Auto-generated method stub");
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
throw new UnsupportedOperationException("Auto-generated method stub");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,5 @@
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||
<classpathentry kind="var" path="IVY_CACHE/javax.el/el-api/el-api-1.0.jar" sourcepath="IVY_CACHE/javax.el/el-api/el-api-sources-1.0.jar"/>
|
||||
<classpathentry kind="var" path="IVY_CACHE/org.junit/junit/junit-3.8.2.jar" sourcepath="/IVY_CACHE/org.junit/junit/junit-sources-3.8.2.jar"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
||||
@@ -15,37 +15,10 @@
|
||||
*/
|
||||
package org.springframework.webflow.action;
|
||||
|
||||
import org.springframework.webflow.action.DispatchMethodInvoker;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link DispatchMethodInvoker}.
|
||||
*
|
||||
* @author Ben Hale
|
||||
*/
|
||||
public class DispatchMethodInvokerTests extends TestCase {
|
||||
|
||||
private class MockClass {
|
||||
private boolean methodCalled = false;
|
||||
|
||||
public boolean getMethodCalled() {
|
||||
return methodCalled;
|
||||
}
|
||||
|
||||
public void argumentMethod(Object o) {
|
||||
methodCalled = true;
|
||||
}
|
||||
|
||||
public void noArgumentMethod() {
|
||||
methodCalled = true;
|
||||
}
|
||||
|
||||
public void exceptionMethod(Object o) throws Exception {
|
||||
throw new Exception("expected exception");
|
||||
}
|
||||
}
|
||||
|
||||
private MockClass mockClass;
|
||||
|
||||
protected void setUp() {
|
||||
@@ -79,4 +52,24 @@ public class DispatchMethodInvokerTests extends TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
private class MockClass {
|
||||
private boolean methodCalled = false;
|
||||
|
||||
public boolean getMethodCalled() {
|
||||
return methodCalled;
|
||||
}
|
||||
|
||||
public void argumentMethod(Object o) {
|
||||
methodCalled = true;
|
||||
}
|
||||
|
||||
public void noArgumentMethod() {
|
||||
methodCalled = true;
|
||||
}
|
||||
|
||||
public void exceptionMethod(Object o) throws Exception {
|
||||
throw new Exception("expected exception");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -48,8 +48,7 @@ public class FlowExecutorFactoryBeanTests extends TestCase {
|
||||
}
|
||||
});
|
||||
factoryBean.afterPropertiesSet();
|
||||
FlowExecutor executor = (FlowExecutor) factoryBean.getObject();
|
||||
MockExternalContext context = new MockExternalContext();
|
||||
factoryBean.getObject();
|
||||
}
|
||||
|
||||
public void testGetFlowExecutorOptionsSpecified() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user