Examples of registerValue()


Examples of jfun.yan.Container.registerValue()

        assertEquals("hello", a.getString());
        assertEquals(new java.util.ArrayList(), a.getList());
        assertSame(b, a.getB());
        final java.util.List list1 = new java.util.LinkedList();
        list1.add("abc");
        yan.registerValue(list1);
        a = (A) yan.getInstance("a");
        assertEquals("hello", a.getString());
        assertEquals(new java.util.ArrayList(), a.getList());
        assertSame(b, a.getB());
    }
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      assertTraceSize(e, 3);
      assertEntry(e, 1, "tests.jfun.yan.testmodel.ICacheFactory");
      assertEquals(0, e.getOrdinalPosition());
      assertEquals(String.class, e.getParameterType());
    }
    yan.registerValue("someone");
    try{
      yan.verify();
      fail("should have failed with IrresolveableArgumentException");
    }
    catch(IrresolveableArgumentException e){
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      assertTraceSize(e, 3);
      assertEntry(e, 1, "tests.jfun.yan.testmodel.ICacheFactory");
      assertEquals(1, e.getOrdinalPosition());
      assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue(new Integer(0));
    yan.verify();
   
    final tests.jfun.yan.testmodel.ICache icache2 = ifactory.createCache("jack", 11);
    assertEquals(MyCache.class, icache2.getClass());
    assertEquals("jack", icache2.getName());
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      assertTraceSize(e, 4);
      assertEntry(e, 2, "tests.jfun.yan.testmodel.ICacheFactory");
      assertEquals(0, e.getOrdinalPosition());
      assertEquals(String.class, e.getParameterType());
    }
    yan.registerValue("someone");
    yan.verify();
    yan.registerValue(new Integer(0));
    yan.verify();
   
    final tests.jfun.yan.testmodel.ICache icache2 = ifactory.createCache("jack", 11);
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      assertEquals(0, e.getOrdinalPosition());
      assertEquals(String.class, e.getParameterType());
    }
    yan.registerValue("someone");
    yan.verify();
    yan.registerValue(new Integer(0));
    yan.verify();
   
    final tests.jfun.yan.testmodel.ICache icache2 = ifactory.createCache("jack", 11);
    assertEquals(MyCache.class, icache2.getClass());
    assertEquals("jack", icache2.getName());
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      if(pos==0)
        assertEquals(String.class, e.getParameterType());
      else
        assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue("someone");
    try{
      yan.verify();
      fail("should have failed with IrresolveableArgumentException");
    }
    catch(IrresolveableArgumentException e){
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      if(pos==0)
        assertEquals(String.class, e.getParameterType());
      else
        assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue(new Integer(0));
    yan.verify();
   
    final tests.jfun.yan.testmodel.ICache icache2 = ifactory.createCache("jack", 11);
    assertEquals(MyCache.class, icache2.getClass());
    assertEquals("11", icache2.getName());
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      if(pos==0)
        assertEquals(String.class, e.getParameterType());
      else
        assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue("someone");
    try{
      yan.verify();
      fail("should have failed with IrresolveableArgumentException");
    }
    catch(IrresolveableArgumentException e){
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      if(pos==0)
        assertEquals(String.class, e.getParameterType());
      else
        assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue(new Integer(0));
    yan.verify();
   
    final tests.jfun.yan.testmodel.ICache icache2 = ifactory.createCache("jack", 11);
    assertEquals(MyCache.class, icache2.getClass());
    assertEquals("jack", icache2.getName());
View Full Code Here

Examples of jfun.yan.Container.registerValue()

      if(pos==0)
        assertEquals(String.class, e.getParameterType());
      else
        assertEquals(int.class, e.getParameterType());
    }
    yan.registerValue("someone");
    try{
      yan.verify();
      fail("should have failed with IrresolveableArgumentException");
    }
    catch(IrresolveableArgumentException e){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.