1 15 package org.apache.tapestry.binding; 16 17 import org.apache.tapestry.IBinding; 18 import org.apache.tapestry.IComponent; 19 import org.apache.tapestry.coerce.ValueConverter; 20 import org.apache.tapestry.services.BSFManagerFactory; 21 22 32 public class TestListenerBinding extends BindingTestCase 33 { 34 35 36 public void testListenerBindingObject() 37 { 38 ValueConverter vc = newValueConverter(); 39 40 IComponent c = newComponent(); 41 42 BSFManagerFactory mf = (BSFManagerFactory) newMock(BSFManagerFactory.class); 43 44 replayControls(); 45 46 IBinding b = new ListenerBinding("foo", vc, null, c, "", "", mf); 47 48 assertSame(b, b.getObject()); 49 50 verifyControls(); 51 } 52 } | Popular Tags |