Examples of CustomClass


Examples of de.ailis.pherialize.test.CustomClass

        CustomClass[] array;
        String s1, s2;

        array = new CustomClass[3];

        array[0] = new CustomClass("String 1", new String[] {});
        array[1] = new CustomClass("String 2", new String[] { "a" });
        array[2] = new CustomClass("String 3", new String[] { "a", "b" });

        s1 = "a:3:{i:0;O:11:\"CustomClass\":2:{s:5:\"value\";s:8:\"String 1\";s:7:\"strings\";a:0:{}}i:1;O:11:\"CustomClass\":2:{s:5:\"value\";s:8:\"String 2\";s:7:\"strings\";a:1:{i:0;s:1:\"a\";}}i:2;O:11:\"CustomClass\":2:{s:5:\"value\";s:8:\"String 3\";s:7:\"strings\";a:2:{i:0;s:1:\"a\";i:1;s:1:\"b\";}}}";
        s2 = Pherialize.serialize(array);
        assertEquals(s1, s2);
    }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testGetCustom()
      throws Exception
   {
      log.info("+++ testGetCustom");
      CustomClass custom = (CustomClass) getServer().getAttribute(getObjectName(), "Custom");
      assertEquals("InitialValue", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testGetCustomXMBean()
      throws Exception
   {
      log.info("+++ testGetCustomXMBean");
      ObjectName xmbean = new ObjectName("jboss.test:service=InvokerTest,type=XMBean");
      CustomClass custom = (CustomClass) getServer().getAttribute(xmbean, "Custom");
      assertEquals("InitialValue", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   {
      log.info("+++ testXMBeanDoSomething");
      ObjectName xmbean = new ObjectName("jboss.test:service=InvokerTest,type=XMBean");
      Object[] args = {};
      String[] sig = {};
      CustomClass custom = (CustomClass) getServer().invoke(xmbean, "doSomething", args, sig);
      log.info("doSomething: "+custom);
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testSetCustom()
      throws Exception
   {
      log.info("+++ testSetCustom");
      MBeanServerConnection server = getServer();
      server.setAttribute(getObjectName(), new Attribute("Custom", new CustomClass("changed")));
      CustomClass custom = (CustomClass) server.getAttribute(getObjectName(), "Custom");
      assertEquals("changed", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testGetCustom()
      throws Exception
   {
      log.info("+++ testGetCustom");
      CustomClass custom = (CustomClass) getJMXServer().getAttribute(getObjectName(), "Custom");
      assertEquals("InitialValue", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testGetCustomXMBean()
      throws Exception
   {
      log.info("+++ testGetCustomXMBean");
      ObjectName xmbean = new ObjectName("jboss.test:service=InvokerTest,type=XMBean");
      CustomClass custom = (CustomClass) getJMXServer().getAttribute(xmbean, "Custom");
      assertEquals("InitialValue", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   {
      log.info("+++ testXMBeanDoSomething");
      ObjectName xmbean = new ObjectName("jboss.test:service=InvokerTest,type=XMBean");
      Object[] args = {};
      String[] sig = {};
      CustomClass custom = (CustomClass) getJMXServer().invoke(xmbean, "doSomething", args, sig);
      log.info("doSomething: "+custom);
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testSetCustom()
      throws Exception
   {
      log.info("+++ testSetCustom");
      MBeanServerConnection server = getJMXServer();
      server.setAttribute(getObjectName(), new Attribute("Custom", new CustomClass("changed")));
      CustomClass custom = (CustomClass) server.getAttribute(getObjectName(), "Custom");
      assertEquals("changed", custom.getValue());
   }
View Full Code Here

Examples of org.jboss.test.jmx.invoker.CustomClass

   public void testGetCustom()
      throws Exception
   {
      log.info("+++ testGetCustom");
      CustomClass custom = (CustomClass) server.getAttribute(getObjectName(), "Custom");
      assertEquals("InitialValue", custom.getValue());
   }
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.