1 7 package com.inversoft.beans.test; 8 9 10 import junit.framework.TestCase; 11 12 import com.inversoft.beans.ConversionListenerAdapter; 13 import com.inversoft.beans.PropertyListenerAdapter; 14 15 16 23 public class AdaptersTest extends TestCase { 24 25 28 public AdaptersTest(String name) { 29 super(name); 30 } 31 32 33 37 public void testAll() { 38 ConversionListenerAdapter ca = new ConversionListenerAdapter() { 39 }; 40 41 try { 44 ca.handleFailedConversion(null); 45 ca.handlePostConversion(null); 46 ca.handlePreConversion(null); 47 } catch (Throwable t) { 48 fail(t.toString()); 49 } 50 51 PropertyListenerAdapter pa = new PropertyListenerAdapter() { 52 }; 53 54 try { 57 pa.handleGet(null); 58 pa.handleSet(null); 59 } catch (Throwable t) { 60 fail(t.toString()); 61 } 62 } 63 } 64 | Popular Tags |