Package javax.management

Examples of javax.management.ValueExp


   /**
    * Test a boolean
    */
   public void testBoolean() throws Exception
   {
      ValueExp one = Query.value(true);
      ValueExp two = Query.value(false);
      equalsTEST(one, two);
      attrTEST(new BooleanTest(true), Query.attr("Boolean"), one, two);
      attrTEST(new BooleanTest(true), Query.attr(BooleanTest.class.getName(), "Boolean"), one, two);
      try
      {
View Full Code Here


   /**
    * Test a double
    */
   public void testDouble() throws Exception
   {
      ValueExp one = Query.value(10d);
      ValueExp two = Query.value(20d);
      ValueExp div = Query.value(2d);
      ValueExp minus = Query.value(-10d);
      ValueExp mult = Query.value(200d);
      ValueExp plus = Query.value(30d);
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(10d), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a Double
    */
   public void testDoubleObject() throws Exception
   {
      ValueExp one = Query.value(new Double(10d));
      ValueExp two = Query.value(new Double(20d));
      ValueExp div = Query.value(new Double(2d));
      ValueExp minus = Query.value(new Double(-10d));
      ValueExp mult = Query.value(new Double(200d));
      ValueExp plus = Query.value(new Double(30d));
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(new Double(10d)), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a float
    */
   public void testFloat() throws Exception
   {
      ValueExp one = Query.value(10f);
      ValueExp two = Query.value(20f);
      ValueExp div = Query.value(2f);
      ValueExp minus = Query.value(-10f);
      ValueExp mult = Query.value(200f);
      ValueExp plus = Query.value(30f);
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(10f), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a Float
    */
   public void testFloatObject() throws Exception
   {
      ValueExp one = Query.value(new Float(10f));
      ValueExp two = Query.value(new Float(20f));
      ValueExp div = Query.value(new Double(2f));
      ValueExp minus = Query.value(new Double(-10f));
      ValueExp mult = Query.value(new Double(200f));
      ValueExp plus = Query.value(new Double(30f));
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(new Float(10f)), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a int
    */
   public void testInteger() throws Exception
   {
      ValueExp one = Query.value(10);
      ValueExp two = Query.value(20);
      ValueExp div = Query.value(2);
      ValueExp minus = Query.value(-10);
      ValueExp mult = Query.value(200);
      ValueExp plus = Query.value(30);
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(10), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a Integer
    */
   public void testIntegerObject() throws Exception
   {
      ValueExp one = Query.value(new Integer(10));
      ValueExp two = Query.value(new Integer(20));
      ValueExp div = Query.value(new Double(2));
      ValueExp minus = Query.value(new Double(-10));
      ValueExp mult = Query.value(new Double(200));
      ValueExp plus = Query.value(new Double(30));
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(new Integer(10)), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a long
    */
   public void testLong() throws Exception
   {
      ValueExp one = Query.value(10l);
      ValueExp two = Query.value(20l);
      ValueExp div = Query.value(2l);
      ValueExp minus = Query.value(-10l);
      ValueExp mult = Query.value(200l);
      ValueExp plus = Query.value(30l);
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(10l), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a Long
    */
   public void testLongObject() throws Exception
   {
      ValueExp one = Query.value(new Long(10l));
      ValueExp two = Query.value(new Long(20l));
      ValueExp div = Query.value(new Double(2l));
      ValueExp minus = Query.value(new Double(-10l));
      ValueExp mult = Query.value(new Double(200l));
      ValueExp plus = Query.value(new Double(30l));
      equalsTEST(one, two);
      operationTEST(one, two, div, minus, mult, plus);
      comparisonTEST(one, two);
      betweenTEST(one, two, plus);
      attrTEST(new NumberTest(new Long(10l)), Query.attr("Number"), one, two);
View Full Code Here

   /**
    * Test a String
    */
   public void testString() throws Exception
   {
      ValueExp one = Query.value("Hello");
      ValueExp two = Query.value("Goodbye");
      ValueExp cat = Query.value("HelloGoodbye");
      ValueExp three = Query.value("ZZZZZZ");
      ValueExp four = Query.value("Hi");
      ValueExp five = Query.value("See ya");
      ValueExp six = Query.value("Laytaz");
      equalsTEST(one, two);
      catTEST(one, two, cat);
      comparisonTEST(two, one);
      betweenTEST(two, one, three);
      attrTEST(new StringTest("Hello"), Query.attr("String"), one, two);
View Full Code Here

TOP

Related Classes of javax.management.ValueExp

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.