1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
package info.magnolia.module.blossom.dialog; |
35 |
|
|
36 |
|
import static org.junit.Assert.assertEquals; |
37 |
|
import static org.junit.Assert.assertFalse; |
38 |
|
import static org.junit.Assert.assertNotNull; |
39 |
|
import static org.junit.Assert.assertTrue; |
40 |
|
import static org.mockito.Mockito.mock; |
41 |
|
|
42 |
|
import info.magnolia.module.blossom.annotation.DialogFactory; |
43 |
|
import info.magnolia.module.blossom.annotation.PostCreate; |
44 |
|
import info.magnolia.module.blossom.annotation.TabFactory; |
45 |
|
import info.magnolia.module.blossom.annotation.TabOrder; |
46 |
|
import info.magnolia.ui.dialog.config.DialogBuilder; |
47 |
|
import info.magnolia.ui.dialog.definition.ConfiguredFormDialogDefinition; |
48 |
|
import info.magnolia.ui.dialog.definition.DialogDefinition; |
49 |
|
import info.magnolia.ui.form.config.TabBuilder; |
50 |
|
import info.magnolia.ui.form.config.TextFieldBuilder; |
51 |
|
import info.magnolia.ui.framework.config.UiConfig; |
52 |
|
|
53 |
|
import java.util.ArrayList; |
54 |
|
import java.util.List; |
55 |
|
|
56 |
|
import javax.jcr.Node; |
57 |
|
|
58 |
|
import org.junit.Test; |
59 |
|
|
60 |
|
import com.vaadin.data.Item; |
61 |
|
|
62 |
|
|
63 |
|
@link |
64 |
|
|
65 |
|
@since |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (73) |
Complexity: 10 |
Complexity Density: 0.16 |
|
67 |
|
public class DefaultDialogCreatorTest extends DialogTestSupport { |
68 |
|
|
69 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
70 |
|
public interface AnnotatedInterface { |
71 |
|
|
72 |
|
@TabFactory("FromInterface") |
73 |
|
void foo(); |
74 |
|
} |
75 |
|
|
76 |
|
@DialogFactory(value = "some-dialog", label = "TestDialog") |
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 3 |
Complexity Density: - |
|
77 |
|
public static class SimpleFactory implements AnnotatedInterface { |
78 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
79 |
2 |
@TabFactory("Properties")... |
80 |
|
public void properties() { |
81 |
|
} |
82 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
83 |
1 |
@TabFactory("Settings")... |
84 |
|
public void settings() { |
85 |
|
} |
86 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
87 |
0 |
@Override... |
88 |
|
public void foo() { |
89 |
|
} |
90 |
|
} |
91 |
|
|
92 |
|
@DialogFactory("some-dialog") |
93 |
|
@TabOrder({"Margins", "Sizes", "Properties"}) |
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 2 |
Complexity Density: - |
|
94 |
|
public static class InheritingFactory extends SimpleFactory { |
95 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
96 |
1 |
@TabFactory("Margins")... |
97 |
|
public void margins(TabBuilder builder, DialogCreationContext context, DialogDefinition dialog, UiConfig cfg) { |
98 |
|
} |
99 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
100 |
1 |
@TabFactory("Sizes")... |
101 |
|
@Override |
102 |
|
public void settings() { |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
|
private DefaultDialogCreator creator = new DefaultDialogCreator(); |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
108 |
1 |
@Test... |
109 |
|
public void testSimpleFactory() throws Exception { |
110 |
|
|
111 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription(new SimpleFactory(), null); |
112 |
|
|
113 |
1 |
assertEquals("some-dialog", description.getId()); |
114 |
1 |
assertEquals("TestDialog", description.getFactoryMetaData().getLabel()); |
115 |
|
|
116 |
1 |
final DialogCreationContext context = new DialogCreationContext(); |
117 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
118 |
|
|
119 |
1 |
assertHasTabs(context.getDialog(), new String[]{"Settings", "Properties"}); |
120 |
|
} |
121 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
1PASS
|
|
122 |
1 |
@Test... |
123 |
|
public void testInheritingFactory() throws Exception { |
124 |
|
|
125 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription(new InheritingFactory(), null); |
126 |
|
|
127 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
128 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
129 |
|
|
130 |
1 |
assertHasTabsInOrder(context.getDialog(), new String[]{"Margins", "Sizes", "Properties"}); |
131 |
|
} |
132 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
133 |
|
public static class BogusTemplate { |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
1 |
@DialogFactory("some-dialog")... |
136 |
|
public void someDialog(DialogBuilder builder, DialogDefinition dialog, DialogCreationContext context) { |
137 |
1 |
builder.form().tab("settings").label("Settings"); |
138 |
|
} |
139 |
|
} |
140 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
141 |
1 |
@Test... |
142 |
|
public void testDialogFactoryOnMethod() throws Exception { |
143 |
|
|
144 |
1 |
List<BlossomDialogDescription> descriptions = new DialogDescriptionBuilder().buildDescriptions(new BogusTemplate()); |
145 |
|
|
146 |
1 |
assertEquals(1, descriptions.size()); |
147 |
|
|
148 |
1 |
BlossomDialogDescription description = descriptions.get(0); |
149 |
|
|
150 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
151 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
152 |
|
|
153 |
1 |
assertHasTabs(context.getDialog(), new String[]{"Settings"}); |
154 |
|
} |
155 |
|
|
|
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 1 |
|
156 |
|
public static class TemplateWithDialogFactoryThatNeedsItem { |
157 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
158 |
1 |
@DialogFactory("some-dialog")... |
159 |
|
public void someDialog(DialogBuilder builder, Item item) { |
160 |
1 |
if (item != null) { |
161 |
1 |
builder.form().tab("gotItem").label("gotItem"); |
162 |
|
} |
163 |
|
} |
164 |
|
} |
165 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
1PASS
|
|
166 |
1 |
@Test... |
167 |
|
public void testDialogFactoryThatNeedsItem() throws Exception { |
168 |
|
|
169 |
1 |
List<BlossomDialogDescription> descriptions = new DialogDescriptionBuilder().buildDescriptions(new TemplateWithDialogFactoryThatNeedsItem()); |
170 |
|
|
171 |
1 |
assertEquals(1, descriptions.size()); |
172 |
|
|
173 |
1 |
BlossomDialogDescription description = descriptions.get(0); |
174 |
|
|
175 |
1 |
Item mockItem = mock(Item.class); |
176 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
177 |
1 |
context.setItem(mockItem); |
178 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
179 |
|
|
180 |
1 |
assertHasTabs(context.getDialog(), new String[]{"gotItem"}); |
181 |
|
} |
182 |
|
|
|
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 1 |
|
183 |
|
public static class DialogFactoryWithTabFactoryThatNeedsItem { |
184 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
185 |
1 |
@TabFactory("Content")... |
186 |
|
public void someDialog(TabBuilder builder, Item item) { |
187 |
1 |
if (item != null) { |
188 |
1 |
builder.fields(new TextFieldBuilder("gotItem")); |
189 |
|
} |
190 |
|
} |
191 |
|
} |
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
193 |
1 |
@Test... |
194 |
|
public void testDialogFactoryWithTabFactoryThatNeedsItem() throws Exception { |
195 |
|
|
196 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithTabFactoryThatNeedsItem()); |
197 |
|
|
198 |
1 |
Item mockItem = mock(Item.class); |
199 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
200 |
1 |
context.setItem(mockItem); |
201 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
202 |
|
|
203 |
1 |
assertEquals("gotItem", context.getDialog().getForm().getTabs().get(0).getFields().get(0).getName()); |
204 |
|
} |
205 |
|
|
206 |
|
private static List<String> events = new ArrayList<String>(); |
207 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
208 |
|
public static class DialogFactoryWithPostCreateMethod { |
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
210 |
1 |
@PostCreate... |
211 |
|
public void postCreate() { |
212 |
1 |
events.add("DialogFactoryWithPostCreateMethod"); |
213 |
|
} |
214 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
215 |
3 |
@TabFactory("a")... |
216 |
|
public void a() {} |
217 |
|
} |
218 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
219 |
|
public static class DialogFactoryWithPostCreateMethodExtendingSuperclass extends DialogFactoryWithPostCreateMethod { |
220 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
221 |
1 |
@PostCreate... |
222 |
|
public void postCreate2() { |
223 |
1 |
events.add("DialogFactoryWithPostCreateMethodExtendingSuperclass"); |
224 |
|
} |
225 |
|
} |
226 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
227 |
1 |
@Test... |
228 |
|
public void testPostCreateIsInvokedOnSuperclassesFirst() throws Exception { |
229 |
|
|
230 |
|
|
231 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithPostCreateMethodExtendingSuperclass()); |
232 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
233 |
|
|
234 |
|
|
235 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
236 |
|
|
237 |
|
|
238 |
1 |
assertEquals("DialogFactoryWithPostCreateMethod", events.remove(0)); |
239 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodExtendingSuperclass", events.remove(0)); |
240 |
1 |
assertTrue(events.isEmpty()); |
241 |
|
} |
242 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 3 |
Complexity Density: 1.5 |
|
243 |
|
public static class DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass extends DialogFactoryWithPostCreateMethod { |
244 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
245 |
1 |
@PostCreate... |
246 |
|
public void postCreate2() { |
247 |
1 |
events.add("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass#postCreate2"); |
248 |
|
} |
249 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
250 |
1 |
@Override... |
251 |
|
@PostCreate |
252 |
|
public void postCreate() { |
253 |
1 |
events.add("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass#postCreate"); |
254 |
|
} |
255 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
256 |
1 |
@TabFactory("b")... |
257 |
|
public void b() {} |
258 |
|
} |
259 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
260 |
1 |
@Test... |
261 |
|
public void testPostCreateOnMethodInSuperclassThatIsOverriddenIsInvokedFirst() throws Exception { |
262 |
|
|
263 |
|
|
264 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass()); |
265 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
266 |
|
|
267 |
|
|
268 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
269 |
|
|
270 |
|
|
271 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass#postCreate", events.remove(0)); |
272 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclass#postCreate2", events.remove(0)); |
273 |
1 |
assertTrue(events.isEmpty()); |
274 |
|
} |
275 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
276 |
|
public static class DialogFactoryWithPostCreateMethodOverridingMethodInSuperclassWithoutRepeatingAnnotation extends DialogFactoryWithPostCreateMethod { |
277 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
278 |
0 |
@Override... |
279 |
|
public void postCreate() { |
280 |
0 |
events.add("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclassWithoutRepeatingAnnotation#postCreate"); |
281 |
|
} |
282 |
|
} |
283 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
1PASS
|
|
284 |
1 |
@Test... |
285 |
|
public void testPostCreateIsNotInvokedIfMethodIsOverriddenWithoutRepeatingAnnotation() throws Exception { |
286 |
|
|
287 |
|
|
288 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithPostCreateMethodOverridingMethodInSuperclassWithoutRepeatingAnnotation()); |
289 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
290 |
|
|
291 |
|
|
292 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
293 |
|
|
294 |
|
|
295 |
1 |
assertFalse(events.contains("DialogFactoryWithPostCreateMethodOverridingMethodInSuperclassWithoutRepeatingAnnotation#postCreate")); |
296 |
1 |
assertTrue(events.isEmpty()); |
297 |
|
} |
298 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.17 |
|
299 |
|
public static class DialogFactoryWithPostCreateMethodTakingArguments { |
300 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
301 |
1 |
@PostCreate... |
302 |
|
public void postCreate(DialogBuilder dialogBuilder, DialogCreationContext context, ConfiguredFormDialogDefinition definition, Node node, Item item, UiConfig cfg) { |
303 |
1 |
assertNotNull(dialogBuilder); |
304 |
1 |
assertNotNull(context); |
305 |
1 |
assertNotNull(definition); |
306 |
1 |
assertNotNull(node); |
307 |
1 |
assertNotNull(item); |
308 |
1 |
assertNotNull(cfg); |
309 |
|
} |
310 |
|
} |
311 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
1PASS
|
|
312 |
1 |
@Test... |
313 |
|
public void testPostCreateIsInvokedWithArguments() throws Exception { |
314 |
|
|
315 |
|
|
316 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithPostCreateMethodTakingArguments()); |
317 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
318 |
1 |
context.setItem(mock(Item.class)); |
319 |
1 |
context.setContentNode(mock(Node.class)); |
320 |
|
|
321 |
|
|
322 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
323 |
|
|
324 |
|
|
325 |
|
|
326 |
|
} |
327 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
328 |
|
public static class DialogFactoryWithPostCreateMethodAfterSubclasses { |
329 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
330 |
1 |
@TabFactory("tab")... |
331 |
|
public void tabFactory() { |
332 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclasses#tabFactory"); |
333 |
|
} |
334 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
335 |
1 |
@PostCreate... |
336 |
|
public void postCreate() { |
337 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclasses#postCreate"); |
338 |
|
} |
339 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
340 |
1 |
@PostCreate(PostCreate.Phase.AFTER_SUB_CLASSES)... |
341 |
|
public void postCreateAfterSubclasses() { |
342 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclasses#postCreateAfterSubclasses"); |
343 |
|
} |
344 |
|
} |
345 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 4 |
Complexity Density: 0.8 |
|
346 |
|
public static class DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass extends DialogFactoryWithPostCreateMethodAfterSubclasses { |
347 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
348 |
1 |
@TabFactory("tabInSubClass")... |
349 |
|
public void tabFactory2() { |
350 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#tabInSubClass"); |
351 |
|
} |
352 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
353 |
1 |
@PostCreate... |
354 |
|
public void postCreate2() { |
355 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreate2"); |
356 |
|
} |
357 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
358 |
1 |
@PostCreate(PostCreate.Phase.AFTER_SUB_CLASSES)... |
359 |
|
public void postCreateAfterSubclasses() { |
360 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreateAfterSubclasses"); |
361 |
1 |
super.postCreateAfterSubclasses(); |
362 |
|
} |
363 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
364 |
1 |
@PostCreate(PostCreate.Phase.AFTER_SUB_CLASSES)... |
365 |
|
public void postCreateAfterSubclasses2() { |
366 |
1 |
events.add("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreateAfterSubclasses2"); |
367 |
|
} |
368 |
|
} |
369 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 1 |
Complexity Density: 0.09 |
1PASS
|
|
370 |
1 |
@Test... |
371 |
|
public void testPostCreateForAfterSubclassesPhaseIsInvokedLast() throws Exception { |
372 |
|
|
373 |
|
|
374 |
1 |
BlossomDialogDescription description = new DialogDescriptionBuilder().buildDescription("id", "label", new DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass()); |
375 |
1 |
DialogCreationContext context = new DialogCreationContext(); |
376 |
|
|
377 |
|
|
378 |
1 |
creator.createDialog(description.getFactoryMetaData(), context); |
379 |
|
|
380 |
|
|
381 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclasses#tabFactory", events.remove(0)); |
382 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclasses#postCreate", events.remove(0)); |
383 |
|
|
384 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#tabInSubClass", events.remove(0)); |
385 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreate2", events.remove(0)); |
386 |
|
|
387 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreateAfterSubclasses", events.remove(0)); |
388 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclasses#postCreateAfterSubclasses", events.remove(0)); |
389 |
|
|
390 |
1 |
assertEquals("DialogFactoryWithPostCreateMethodAfterSubclassesExtendingSuperclass#postCreateAfterSubclasses2", events.remove(0)); |
391 |
|
|
392 |
1 |
assertTrue(events.isEmpty()); |
393 |
|
} |
394 |
|
} |