Package test.compliance.query.support

Examples of test.compliance.query.support.NumberTest


   {
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.and
         (
            Query.eq
            (
View Full Code Here


   {
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.or
         (
            Query.eq
            (
View Full Code Here

   {
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.not
         (
            Query.eq
            (
View Full Code Here

   public void testNotNot() throws Exception
   {
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.not
         (
            Query.eq
View Full Code Here

   public void testClassAttribute() throws Exception
   {
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[]
         {
            new MBean(new Trivial(), "Domain1:type=instance2")
         },
View Full Code Here

      MBeanServer server1 = MBeanServerFactory.createMBeanServer("server1");
      MBeanServer server2 = MBeanServerFactory.createMBeanServer("server2");
      try
      {
         ObjectName name = new ObjectName("Domain1:type=instance1");
         NumberTest bean1 = new NumberTest(1);
         NumberTest bean2 = new NumberTest(2);
         server1.registerMBean(bean1, name);
         server2.registerMBean(bean2, name);
         QueryExp query = Query.eq(Query.attr("Number"), Query.value(2));
         QueryThread thread1 = new QueryThread(server1, query, 0);
         QueryThread thread2 = new QueryThread(server2, query, 1);
View Full Code Here

   {
      // Test equals
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            value1, value1
         )
      ).test();
      // Test not equals
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.eq
         (
            value1, value2
         )
View Full Code Here

   {
      // Test div
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            Query.div(value2, value1),
            div
         )
      ).test();
      // Test minus
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            Query.minus(value1, value2),
            minus
         )
      ).test();
      // Test mult
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            Query.times(value1, value2),
            mult
         )
      ).test();
      // Test plus
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            Query.plus(value1, value2),
View Full Code Here

   {
      // Test cat
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.eq
         (
            Query.plus(value1, value2),
View Full Code Here

   {
      // Test greater than or equals (really greater than)
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.geq
         (
            value2, value1
         )
      ).test();
      // Test greater than or equals (really greater equals)
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.geq
         (
            value1, value1
         )
      ).test();
      // Test not greater than or equals
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.geq
         (
            value1, value2
         )
      ).test();
      // Test greater than
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.gt
         (
            value2, value1
         )
      ).test();
      // Test not greater than
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.gt
         (
            value1, value2
         )
      ).test();
      // Test greater than or equals (really greater than)
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.leq
         (
            value1, value2
         )
      ).test();
      // Test greater than or equals (really greater equals)
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.leq
         (
            value1, value1
         )
      ).test();
      // Test not greater than or equals
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.leq
         (
            value2, value1
         )
      ).test();
      // Test greater than
      new QueryTEST(
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         new MBean[0],
         Query.lt
         (
            value1, value2
         )
      ).test();
      // Test not greater than
      new QueryTEST(
         new MBean[0],
         new MBean[]
         {
            new MBean(new NumberTest(0), "Domain1:type=instance1")
         },
         Query.lt
         (
            value2, value1
         )
View Full Code Here

TOP

Related Classes of test.compliance.query.support.NumberTest

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.