Lines 99-135
Link Here
|
99 |
assertTrue("1.4", query.areHooksExecutedProperly()); |
99 |
assertTrue("1.4", query.areHooksExecutedProperly()); |
100 |
} |
100 |
} |
101 |
|
101 |
|
102 |
public void testPropertyLookupMatchQuery() { |
|
|
103 |
IQuery query1 = new PropertyLookupQuery1(); |
104 |
Object property = query1.getProperty("SomeProperty"); |
105 |
assertEquals("1.0", "foo", property); |
106 |
} |
107 |
|
108 |
public void testPropertyLookupContextQuery() { |
109 |
IQuery query1 = new PropertyLookupQuery2(); |
110 |
Object property = query1.getProperty("SomeOtherProperty"); |
111 |
assertEquals("1.0", "bar", property); |
112 |
} |
113 |
|
114 |
public void testPropertyLookupInvalidProperty1() { |
115 |
IQuery query1 = new PropertyLookupQuery1(); |
116 |
Object property = query1.getProperty("ThisProperty"); |
117 |
assertEquals("1.0", null, property); |
118 |
} |
119 |
|
120 |
public void testPropertyLookupInvalidProperty2() { |
121 |
IQuery query1 = new PropertyLookupQuery1(); |
122 |
Object property = query1.getProperty("SomeOtherProperty"); |
123 |
assertEquals("1.0", null, property); |
124 |
} |
125 |
|
126 |
public void testIDLookup() { |
127 |
IQuery query1 = new PropertyLookupQuery1(); |
128 |
IQuery query2 = new PropertyLookupQuery2(); |
129 |
assertEquals("1.0", "org.eclipse.equinox.p2.tests.core.PropertyLookupQuery1", query1.getId()); |
130 |
assertEquals("1.0", "org.eclipse.equinox.p2.tests.core.PropertyLookupQuery2", query2.getId()); |
131 |
} |
132 |
|
133 |
public void testPerformHooksOnQueryFail() { |
102 |
public void testPerformHooksOnQueryFail() { |
134 |
List items = Arrays.asList("red", new Object()); |
103 |
List items = Arrays.asList("red", new Object()); |
135 |
PerformHookQuery query = new PerformHookQuery(); |
104 |
PerformHookQuery query = new PerformHookQuery(); |