{
// 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
)