Package org.jboss.test.jmx.compliance.query.support

Examples of org.jboss.test.jmx.compliance.query.support.Trivial


      {
         // Test in first
         new QueryTEST(
            new MBean[]
            {
               new MBean(new Trivial(), "Domain1:type=instance1")
            },
            new MBean[0],
            Query.in
            (
               one,
               new ValueExp[]
               {
                  one, two, two
               }
            )
         ).test();
         // Test in last
         new QueryTEST(
            new MBean[]
            {
               new MBean(new Trivial(), "Domain1:type=instance1")
            },
            new MBean[0],
            Query.in
            (
               one,
               new ValueExp[]
               {
                  two, two, one
               }
            )
         ).test();
         // Test in not the first or last
         new QueryTEST(
            new MBean[]
            {
               new MBean(new Trivial(), "Domain1:type=instance1")
            },
            new MBean[0],
            Query.in
            (
               one,
               new ValueExp[]
               {
                  two, one, two
               }
            )
         ).test();
         // Test not in
         new QueryTEST(
            new MBean[0],
            new MBean[]
            {
               new MBean(new Trivial(), "Domain1:type=instance1")
            },
            Query.in
            (
               one,
               new ValueExp[]
View Full Code Here


         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance2")
         },
         Query.eq
         (
            Query.classattr(), Query.value(NumberTest.class.getName())
         )
View Full Code Here

   public void testSimpleObjectName() throws Exception
   {
      new QueryTEST(
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance1")
         },
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance2")
         },
         new ObjectName("Domain1:type=instance1")
      ).test();
   }
View Full Code Here

   public void testDomainPatternObjectName() throws Exception
   {
      new QueryTEST(
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance1")
         },
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance2")
         },
         new ObjectName("*:type=instance1")
      ).test();
   }
View Full Code Here

   public void testPropertyPatternObjectName() throws Exception
   {
      new QueryTEST(
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance1"),
            new MBean(new Trivial(), "Domain1:type=instance2")
         },
         new MBean[]
         {
            new MBean(new Trivial(), "Domain2:type=instance1")
         },
         new ObjectName("Domain1:*")
      ).test();
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.jmx.compliance.query.support.Trivial

Copyright © 2018 www.massapicom. 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.