You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/07/03 23:07:48 UTC

svn commit: r673803 [3/4] - in /myfaces/core/trunk: api/src/main/java/javax/faces/ api/src/main/java/javax/faces/application/ api/src/main/java/javax/faces/component/ api/src/main/java/javax/faces/convert/ api/src/main/java/javax/faces/el/ api/src/main...

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/MangedBeanExample.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/MangedBeanExample.java?rev=673803&r1=673802&r2=673803&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/MangedBeanExample.java (original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/MangedBeanExample.java Thu Jul  3 14:07:46 2008
@@ -28,50 +28,50 @@
 
 public class MangedBeanExample {
 
-	private String managedProperty ;
-	private List managedList;
-	private List writeOnlyList;
-	private Map managedMap;
-	private Map writeOnlyMap;
-	
-	public List getManagedList() {
-		return managedList;
-	}
-
-	public void setManagedList(List managedList) {
-		this.managedList = managedList;
-	}
-
-	public String getManagedProperty() {
-		return managedProperty;
-	}
-
-	public void setManagedProperty(String managedProperty) {
-		this.managedProperty = managedProperty;
-	}
-
-	public Map getManagedMap() {
-		return managedMap;
-	}
-
-	public void setManagedMap(Map managedMap) {
-		this.managedMap = managedMap;
-	}
-
-	public void setWriteOnlyList(List writeOnlyList) {
-		this.writeOnlyList = writeOnlyList;
-	}
-
-	public void setWriteOnlyMap(Map writeOnlyMap) {
-		this.writeOnlyMap = writeOnlyMap;
-	}
-
-	public Map getHiddenWriteOnlyMap() {
-		return writeOnlyMap;
-	}
-
-	public List getHiddenWriteOnlyList() {
-		return writeOnlyList;
-	}
+    private String managedProperty ;
+    private List managedList;
+    private List writeOnlyList;
+    private Map managedMap;
+    private Map writeOnlyMap;
+    
+    public List getManagedList() {
+        return managedList;
+    }
+
+    public void setManagedList(List managedList) {
+        this.managedList = managedList;
+    }
+
+    public String getManagedProperty() {
+        return managedProperty;
+    }
+
+    public void setManagedProperty(String managedProperty) {
+        this.managedProperty = managedProperty;
+    }
+
+    public Map getManagedMap() {
+        return managedMap;
+    }
+
+    public void setManagedMap(Map managedMap) {
+        this.managedMap = managedMap;
+    }
+
+    public void setWriteOnlyList(List writeOnlyList) {
+        this.writeOnlyList = writeOnlyList;
+    }
+
+    public void setWriteOnlyMap(Map writeOnlyMap) {
+        this.writeOnlyMap = writeOnlyMap;
+    }
+
+    public Map getHiddenWriteOnlyMap() {
+        return writeOnlyMap;
+    }
+
+    public List getHiddenWriteOnlyList() {
+        return writeOnlyList;
+    }
 
 }

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/Myfaces889TestCase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/Myfaces889TestCase.java?rev=673803&r1=673802&r2=673803&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/Myfaces889TestCase.java (original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/config/Myfaces889TestCase.java Thu Jul  3 14:07:46 2008
@@ -33,85 +33,85 @@
 
 public class Myfaces889TestCase extends AbstractManagedBeanBuilderTestCase {
 
-	private static Log log = LogFactory.getLog(Myfaces889TestCase.class);
-	
-	public void testWriteOnlyMap(){
-		assertTrue(example != null);
-		log.debug("managed bean successfully created");
-		
-		Map writeOnlyMap = example.getHiddenWriteOnlyMap();
-		
-		assertTrue(writeOnlyMap != null);
-		log.debug("managed map is not null");
-		
-		scrutinizeMap(writeOnlyMap);
-	}
-	
-	public void testManagedMap(){
-		assertTrue(example != null);
-		log.debug("managed bean successfully created");
-		
-		Map managedMap = example.getManagedMap();
-		
-		assertTrue(managedMap != null);
-		log.debug("managed map is not null");
-		
-		scrutinizeMap(managedMap);
-	}
-	
-	private void scrutinizeMap(Map map){
-		assertTrue(map.size() == 3);
-		log.debug("managed map has the correct size " + map.size());
-		
-		for(int i = 0; i < map.size(); i++){
-			String entry = (String) map.get(i + "");
-			String config = (String) MANAGED_MAP.get(i + "");
-			log.debug("looking @ " + config + " and " + entry);
-			assertTrue(config.equals(entry));
-		}
-		
-	}
-	
-	public void testManagedList(){
-		assertTrue(example != null);
-		log.debug("managed bean successfully created");
-		
-		List managedList = example.getManagedList();
-		
-		scrutinizeList(managedList);
-	}
-	
-	public void testWriteOnlyList(){
-		assertTrue(example != null);
-		log.debug("managed bean successfully created");
-		
-		List writeOnlyList = example.getHiddenWriteOnlyList();
-		
-		scrutinizeList(writeOnlyList);
-	}
-	
-	private void scrutinizeList(List list){
-		assertTrue(list != null);
-		log.debug("managed list is not null " + list.size());
-		assertTrue(list.size() == 3);
-		log.debug("managed list has the correct size " + list.size());
-		
-		for(int i = 0 ; i < list.size(); i++){
-			String entry = (String) list.get(i);
-			String config = (String) MANAGED_LIST.get(i);
-			log.debug("looking @ " + config + " and " + entry);
-			assertTrue(config.equals(entry));
-		}
-	}
-	
-	public void testManagedProperty(){
-		assertTrue(example != null);
-		log.debug("managed bean successfully created");
-		
-		String managedPropertyValue = example.getManagedProperty();
-		
-		assertTrue(INJECTED_VALUE.equals(managedPropertyValue));
-		log.debug("managed property String has the correct value ");
-	}
-	
+    private static Log log = LogFactory.getLog(Myfaces889TestCase.class);
+    
+    public void testWriteOnlyMap(){
+        assertTrue(example != null);
+        log.debug("managed bean successfully created");
+        
+        Map writeOnlyMap = example.getHiddenWriteOnlyMap();
+        
+        assertTrue(writeOnlyMap != null);
+        log.debug("managed map is not null");
+        
+        scrutinizeMap(writeOnlyMap);
+    }
+    
+    public void testManagedMap(){
+        assertTrue(example != null);
+        log.debug("managed bean successfully created");
+        
+        Map managedMap = example.getManagedMap();
+        
+        assertTrue(managedMap != null);
+        log.debug("managed map is not null");
+        
+        scrutinizeMap(managedMap);
+    }
+    
+    private void scrutinizeMap(Map map){
+        assertTrue(map.size() == 3);
+        log.debug("managed map has the correct size " + map.size());
+        
+        for(int i = 0; i < map.size(); i++){
+            String entry = (String) map.get(i + "");
+            String config = (String) MANAGED_MAP.get(i + "");
+            log.debug("looking @ " + config + " and " + entry);
+            assertTrue(config.equals(entry));
+        }
+        
+    }
+    
+    public void testManagedList(){
+        assertTrue(example != null);
+        log.debug("managed bean successfully created");
+        
+        List managedList = example.getManagedList();
+        
+        scrutinizeList(managedList);
+    }
+    
+    public void testWriteOnlyList(){
+        assertTrue(example != null);
+        log.debug("managed bean successfully created");
+        
+        List writeOnlyList = example.getHiddenWriteOnlyList();
+        
+        scrutinizeList(writeOnlyList);
+    }
+    
+    private void scrutinizeList(List list){
+        assertTrue(list != null);
+        log.debug("managed list is not null " + list.size());
+        assertTrue(list.size() == 3);
+        log.debug("managed list has the correct size " + list.size());
+        
+        for(int i = 0 ; i < list.size(); i++){
+            String entry = (String) list.get(i);
+            String config = (String) MANAGED_LIST.get(i);
+            log.debug("looking @ " + config + " and " + entry);
+            assertTrue(config.equals(entry));
+        }
+    }
+    
+    public void testManagedProperty(){
+        assertTrue(example != null);
+        log.debug("managed bean successfully created");
+        
+        String managedPropertyValue = example.getManagedProperty();
+        
+        assertTrue(INJECTED_VALUE.equals(managedPropertyValue));
+        log.debug("managed property String has the correct value ");
+    }
+    
 }

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/TestConverter.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/TestConverter.java?rev=673803&r1=673802&r2=673803&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/TestConverter.java (original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/TestConverter.java Thu Jul  3 14:07:46 2008
@@ -27,24 +27,24 @@
 import javax.faces.convert.ConverterException;
 
 public class TestConverter implements Converter, Serializable {
-	private static final long serialVersionUID = 8573936507630310334L;
+    private static final long serialVersionUID = 8573936507630310334L;
 
-	public Object getAsObject(FacesContext context, UIComponent component,
-			String value) throws ConverterException {
-		return new Integer(value);
-	}
+    public Object getAsObject(FacesContext context, UIComponent component,
+            String value) throws ConverterException {
+        return new Integer(value);
+    }
 
-	public String getAsString(FacesContext context, UIComponent component,
-			Object value) throws ConverterException {
-		String asString = null;
-		if(value == null) {
-			asString = "";
-		} else if(value instanceof String) {
-			asString = value.toString();
-		} else {
-			asString = ((Integer)value).intValue() + "";
-		}
-		return asString;
-	}
+    public String getAsString(FacesContext context, UIComponent component,
+            Object value) throws ConverterException {
+        String asString = null;
+        if(value == null) {
+            asString = "";
+        } else if(value instanceof String) {
+            asString = value.toString();
+        } else {
+            asString = ((Integer)value).intValue() + "";
+        }
+        return asString;
+    }
 
 }

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/ValueBindingImplCactus.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/ValueBindingImplCactus.java?rev=673803&r1=673802&r2=673803&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/ValueBindingImplCactus.java (original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/el/ValueBindingImplCactus.java Thu Jul  3 14:07:46 2008
@@ -35,204 +35,204 @@
 import org.apache.cactus.ServletTestCase;
 
 public class ValueBindingImplCactus extends ServletTestCase {
-	private FacesContext facesContext;
-	private UIViewRoot viewRoot;
-	private Application application;
-	
-	protected void setUp() throws Exception {
-		super.setUp();
-		FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder
-				.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
-		LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder
-				.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
-		Lifecycle lifecycle = lifecycleFactory
-				.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
-		facesContext = facesContextFactory.getFacesContext(this.config
-				.getServletContext(), request, response, lifecycle);
-		assertNotNull(facesContext);
-		application = facesContext.getApplication();
-		ViewHandler viewHandler = application.getViewHandler();
-		String viewId = "/index.jsp";
-		viewRoot = viewHandler.createView(facesContext, viewId);
-		viewRoot.setViewId(viewId);
-		facesContext.setViewRoot(viewRoot);
-	}
-
-	protected void tearDown() throws Exception {
-		super.tearDown();
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.getExpressionString()'
-	 */
-	public void testGetExpressionString() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.getType(FacesContext)'
-	 */
-	public void testGetType() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.getValue(FacesContext)'
-	 */
-	public void testGetValue() {
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.isReadOnly(FacesContext)'
-	 */
-	public void testIsReadOnly() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.setValue(FacesContext, Object)'
-	 */
-	public void testSetValueSimpleMap() {
-		facesContext.getExternalContext().getRequestMap().put("foo", new HashMap());
-		ValueBinding binding = application.createValueBinding("#{foo['baz']}");
-		Integer value = new Integer(14);
-		binding.setValue(facesContext, value);
-		assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
-	}
-
-	public void testSetValueSimpleBeanInRequestMapNoInitialValue() {
-		Map map = new HashMap();
-		DummyBean bean = new DummyBean(map);
-		facesContext.getExternalContext().getRequestMap().put("bean", bean);
-		ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
-		Integer value = new Integer(14);
-		binding.setValue(facesContext, value);
-		assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
-	}
-
-	public void testSetValueSimpleBeanInRequestMapWithInitialValue() {
-		Map map = new HashMap();
-		String initialValue = "hello world";
-		map.put("baz", initialValue);
-		DummyBean bean = new DummyBean(map);
-		facesContext.getExternalContext().getRequestMap().put("bean", bean);
-		ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
-		assertEquals(initialValue, binding.getValue(facesContext));
-		Integer value = new Integer(14);
-		binding.setValue(facesContext, value);
-		assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
-	}
-
-	public void testSetValueSimpleBeanInRequestMapWithConverter() {
-		Map map = new HashMap();
-		DummyBean bean = new DummyBean(map);
-		facesContext.getExternalContext().getRequestMap().put("bean", bean);
-		ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
-		binding.setValue(facesContext, new Integer(14));
-		assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
-	}
-
-	public void testSetValueSimpleBeanInSessionMap() {
-		DummyBean bean = new DummyBean(new HashMap());
-		facesContext.getExternalContext().getSessionMap().put("bean", bean);
-		ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
-		Integer value = new Integer(14);
-		binding.setValue(facesContext, value);
-		assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
-	}
-	
-	public void setSetIntegerPrimitive() {
-		DummyBean bean = new DummyBean(new HashMap());
-		facesContext.getExternalContext().getSessionMap().put("bean", bean);
-		ValueBinding binding = application.createValueBinding("#{bean.integerPrimitive}");
-		Integer value = new Integer(14);
-		binding.setValue(facesContext, value);
-		assertEquals(14, bean.getIntegerPrimitive());
-	}
-	
-	public void testUnaryNot() {
-		facesContext.getExternalContext().getRequestMap().put("trueBean", Boolean.TRUE);
-		ValueBinding binding;
-		
-		// First test #{trueBean} is working well
-		binding = application.createValueBinding("#{trueBean}");
-		assertTrue( ((Boolean)binding.getValue(facesContext)).booleanValue() );
-		
-		// Then test #{! trueBean} is false
-		binding = application.createValueBinding("#{! trueBean}");
-		assertFalse( ((Boolean)binding.getValue(facesContext)).booleanValue() );
-	}
-	
-	public void testNotEmpty() {
-		facesContext.getExternalContext().getRequestMap().put("dummyString", "dummy");
-		ValueBinding binding;
-		
-		binding = application.createValueBinding("#{! empty dummyString}");
-		assertTrue( ((Boolean)binding.getValue(facesContext)).booleanValue() );
-		
-		binding = application.createValueBinding("#{! empty undefString}");
-		assertFalse( ((Boolean)binding.getValue(facesContext)).booleanValue() );
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.ValueBindingImpl(Application,
-	 * String)'
-	 */
-	public void testValueBindingImplApplicationString() {
-
-	}
-
-	/*
-	 * Test method for 'org.apache.myfaces.el.ValueBindingImpl.toString()'
-	 */
-	public void testToString() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.ValueBindingImpl()'
-	 */
-	public void testValueBindingImpl() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.saveState(FacesContext)'
-	 */
-	public void testSaveState() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.restoreState(FacesContext,
-	 * Object)'
-	 */
-	public void testRestoreState() {
-
-	}
-
-	/*
-	 * Test method for 'org.apache.myfaces.el.ValueBindingImpl.isTransient()'
-	 */
-	public void testIsTransient() {
-
-	}
-
-	/*
-	 * Test method for
-	 * 'org.apache.myfaces.el.ValueBindingImpl.setTransient(boolean)'
-	 */
-	public void testSetTransient() {
+    private FacesContext facesContext;
+    private UIViewRoot viewRoot;
+    private Application application;
+    
+    protected void setUp() throws Exception {
+        super.setUp();
+        FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder
+                .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
+        LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder
+                .getFactory(FactoryFinder.LIFECYCLE_FACTORY);
+        Lifecycle lifecycle = lifecycleFactory
+                .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
+        facesContext = facesContextFactory.getFacesContext(this.config
+                .getServletContext(), request, response, lifecycle);
+        assertNotNull(facesContext);
+        application = facesContext.getApplication();
+        ViewHandler viewHandler = application.getViewHandler();
+        String viewId = "/index.jsp";
+        viewRoot = viewHandler.createView(facesContext, viewId);
+        viewRoot.setViewId(viewId);
+        facesContext.setViewRoot(viewRoot);
+    }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.getExpressionString()'
+     */
+    public void testGetExpressionString() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.getType(FacesContext)'
+     */
+    public void testGetType() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.getValue(FacesContext)'
+     */
+    public void testGetValue() {
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.isReadOnly(FacesContext)'
+     */
+    public void testIsReadOnly() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.setValue(FacesContext, Object)'
+     */
+    public void testSetValueSimpleMap() {
+        facesContext.getExternalContext().getRequestMap().put("foo", new HashMap());
+        ValueBinding binding = application.createValueBinding("#{foo['baz']}");
+        Integer value = new Integer(14);
+        binding.setValue(facesContext, value);
+        assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
+    }
+
+    public void testSetValueSimpleBeanInRequestMapNoInitialValue() {
+        Map map = new HashMap();
+        DummyBean bean = new DummyBean(map);
+        facesContext.getExternalContext().getRequestMap().put("bean", bean);
+        ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
+        Integer value = new Integer(14);
+        binding.setValue(facesContext, value);
+        assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
+    }
+
+    public void testSetValueSimpleBeanInRequestMapWithInitialValue() {
+        Map map = new HashMap();
+        String initialValue = "hello world";
+        map.put("baz", initialValue);
+        DummyBean bean = new DummyBean(map);
+        facesContext.getExternalContext().getRequestMap().put("bean", bean);
+        ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
+        assertEquals(initialValue, binding.getValue(facesContext));
+        Integer value = new Integer(14);
+        binding.setValue(facesContext, value);
+        assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
+    }
+
+    public void testSetValueSimpleBeanInRequestMapWithConverter() {
+        Map map = new HashMap();
+        DummyBean bean = new DummyBean(map);
+        facesContext.getExternalContext().getRequestMap().put("bean", bean);
+        ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
+        binding.setValue(facesContext, new Integer(14));
+        assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
+    }
+
+    public void testSetValueSimpleBeanInSessionMap() {
+        DummyBean bean = new DummyBean(new HashMap());
+        facesContext.getExternalContext().getSessionMap().put("bean", bean);
+        ValueBinding binding = application.createValueBinding("#{bean.map['baz']}");
+        Integer value = new Integer(14);
+        binding.setValue(facesContext, value);
+        assertEquals(14, ((Integer)binding.getValue(facesContext)).intValue());
+    }
+    
+    public void setSetIntegerPrimitive() {
+        DummyBean bean = new DummyBean(new HashMap());
+        facesContext.getExternalContext().getSessionMap().put("bean", bean);
+        ValueBinding binding = application.createValueBinding("#{bean.integerPrimitive}");
+        Integer value = new Integer(14);
+        binding.setValue(facesContext, value);
+        assertEquals(14, bean.getIntegerPrimitive());
+    }
+    
+    public void testUnaryNot() {
+        facesContext.getExternalContext().getRequestMap().put("trueBean", Boolean.TRUE);
+        ValueBinding binding;
+        
+        // First test #{trueBean} is working well
+        binding = application.createValueBinding("#{trueBean}");
+        assertTrue( ((Boolean)binding.getValue(facesContext)).booleanValue() );
+        
+        // Then test #{! trueBean} is false
+        binding = application.createValueBinding("#{! trueBean}");
+        assertFalse( ((Boolean)binding.getValue(facesContext)).booleanValue() );
+    }
+    
+    public void testNotEmpty() {
+        facesContext.getExternalContext().getRequestMap().put("dummyString", "dummy");
+        ValueBinding binding;
+        
+        binding = application.createValueBinding("#{! empty dummyString}");
+        assertTrue( ((Boolean)binding.getValue(facesContext)).booleanValue() );
+        
+        binding = application.createValueBinding("#{! empty undefString}");
+        assertFalse( ((Boolean)binding.getValue(facesContext)).booleanValue() );
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.ValueBindingImpl(Application,
+     * String)'
+     */
+    public void testValueBindingImplApplicationString() {
+
+    }
+
+    /*
+     * Test method for 'org.apache.myfaces.el.ValueBindingImpl.toString()'
+     */
+    public void testToString() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.ValueBindingImpl()'
+     */
+    public void testValueBindingImpl() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.saveState(FacesContext)'
+     */
+    public void testSaveState() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.restoreState(FacesContext,
+     * Object)'
+     */
+    public void testRestoreState() {
+
+    }
+
+    /*
+     * Test method for 'org.apache.myfaces.el.ValueBindingImpl.isTransient()'
+     */
+    public void testIsTransient() {
+
+    }
+
+    /*
+     * Test method for
+     * 'org.apache.myfaces.el.ValueBindingImpl.setTransient(boolean)'
+     */
+    public void testSetTransient() {
 
-	}
+    }
 
 }

Modified: myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/lifecycle/InstrumentingPhaseListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/lifecycle/InstrumentingPhaseListener.java?rev=673803&r1=673802&r2=673803&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/lifecycle/InstrumentingPhaseListener.java (original)
+++ myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/lifecycle/InstrumentingPhaseListener.java Thu Jul  3 14:07:46 2008
@@ -27,95 +27,95 @@
 import javax.faces.event.PhaseListener;
 
 public class InstrumentingPhaseListener implements PhaseListener {
-	private static final long serialVersionUID = -3222250142846233648L;
-	private PhaseId listenPhaseId = null;
-	private PhaseId eventPhaseId = null;
-	private boolean before = true;
-	private boolean after = true;
-	private boolean render = false;
-	private boolean complete = false;
-	private List afterPhases = new ArrayList();
-	private List beforePhases = new ArrayList();
-
-	public InstrumentingPhaseListener() {
-	}
-
-	public InstrumentingPhaseListener(PhaseId interestingPhaseId) {
-		this.listenPhaseId = interestingPhaseId;
-	}
-	
-	public void afterPhase(PhaseEvent event) {
-		afterPhases.add(event.getPhaseId());
-		if(null != eventPhaseId && event.getPhaseId().equals(eventPhaseId)) {
-			if(after && render) {
-				event.getFacesContext().renderResponse();
-			} else if(after && complete) {
-				event.getFacesContext().responseComplete();
-			}
-		}
-	}
-
-	public void beforePhase(PhaseEvent event) {
-		beforePhases.add(event.getPhaseId());
-		if(null != eventPhaseId && event.getPhaseId().equals(eventPhaseId)) {
-			if(before && render) {
-				event.getFacesContext().renderResponse();
-			} else if(before && complete) {
-				event.getFacesContext().responseComplete();
-			}
-		}
-	}
-
-	public boolean isBefore() {
-		return before;
-	}
-
-	public void setBefore(boolean before) {
-		this.before = before;
-	}
-
-	public boolean isAfter() {
-		return after;
-	}
-
-	public void setAfter(boolean after) {
-		this.after = after;
-	}
-
-	public boolean isComplete() {
-		return complete;
-	}
-
-	public void setComplete(boolean complete) {
-		this.complete = complete;
-	}
-
-	public boolean isRender() {
-		return render;
-	}
-
-	public void setRender(boolean render) {
-		this.render = render;
-	}
-
-	public PhaseId getPhaseId() {
-		if(null == listenPhaseId) {
-			return PhaseId.ANY_PHASE;
-		}
-		return listenPhaseId;
-	}
-
-	public void setEventPhaseId(PhaseId phaseId) {
-		this.eventPhaseId = phaseId;
-	}
-
-	public List getAfterPhases() {
-		return afterPhases;
-	}
-
-	public List getBeforePhases() {
-		return beforePhases;
-	}
+    private static final long serialVersionUID = -3222250142846233648L;
+    private PhaseId listenPhaseId = null;
+    private PhaseId eventPhaseId = null;
+    private boolean before = true;
+    private boolean after = true;
+    private boolean render = false;
+    private boolean complete = false;
+    private List afterPhases = new ArrayList();
+    private List beforePhases = new ArrayList();
+
+    public InstrumentingPhaseListener() {
+    }
+
+    public InstrumentingPhaseListener(PhaseId interestingPhaseId) {
+        this.listenPhaseId = interestingPhaseId;
+    }
+    
+    public void afterPhase(PhaseEvent event) {
+        afterPhases.add(event.getPhaseId());
+        if(null != eventPhaseId && event.getPhaseId().equals(eventPhaseId)) {
+            if(after && render) {
+                event.getFacesContext().renderResponse();
+            } else if(after && complete) {
+                event.getFacesContext().responseComplete();
+            }
+        }
+    }
+
+    public void beforePhase(PhaseEvent event) {
+        beforePhases.add(event.getPhaseId());
+        if(null != eventPhaseId && event.getPhaseId().equals(eventPhaseId)) {
+            if(before && render) {
+                event.getFacesContext().renderResponse();
+            } else if(before && complete) {
+                event.getFacesContext().responseComplete();
+            }
+        }
+    }
+
+    public boolean isBefore() {
+        return before;
+    }
+
+    public void setBefore(boolean before) {
+        this.before = before;
+    }
+
+    public boolean isAfter() {
+        return after;
+    }
+
+    public void setAfter(boolean after) {
+        this.after = after;
+    }
+
+    public boolean isComplete() {
+        return complete;
+    }
+
+    public void setComplete(boolean complete) {
+        this.complete = complete;
+    }
+
+    public boolean isRender() {
+        return render;
+    }
+
+    public void setRender(boolean render) {
+        this.render = render;
+    }
+
+    public PhaseId getPhaseId() {
+        if(null == listenPhaseId) {
+            return PhaseId.ANY_PHASE;
+        }
+        return listenPhaseId;
+    }
+
+    public void setEventPhaseId(PhaseId phaseId) {
+        this.eventPhaseId = phaseId;
+    }
+
+    public List getAfterPhases() {
+        return afterPhases;
+    }
+
+    public List getBeforePhases() {
+        return beforePhases;
+    }
 
-	
+    
 }