/
NewEventTest.java
799 lines (700 loc) · 26.7 KB
/
NewEventTest.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
package org.jboss.webbeans.test;
import java.lang.annotation.Annotation;
import java.util.Set;
import javax.webbeans.DefinitionException;
import javax.webbeans.DuplicateBindingTypeException;
import javax.webbeans.Event;
import javax.webbeans.Observable;
import javax.webbeans.Observer;
import javax.webbeans.ObserverException;
import javax.webbeans.TypeLiteral;
import org.jboss.webbeans.bean.AbstractBean;
import org.jboss.webbeans.bean.EventBean;
import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.bindings.InitializedBinding;
import org.jboss.webbeans.introspector.AnnotatedField;
import org.jboss.webbeans.test.beans.BananaSpider;
import org.jboss.webbeans.test.beans.RecluseSpider;
import org.jboss.webbeans.test.beans.SweeWaxbill;
import org.jboss.webbeans.test.beans.TeaCupPomeranian;
import org.jboss.webbeans.test.bindings.AnimalStereotypeAnnotationLiteral;
import org.jboss.webbeans.test.bindings.RoleBinding;
import org.jboss.webbeans.test.bindings.TameAnnotationLiteral;
import org.jboss.webbeans.test.ejb.invalid.AustralianTerrier;
import org.jboss.webbeans.test.ejb.invalid.BorderTerrier;
import org.jboss.webbeans.test.ejb.invalid.BostonTerrier;
import org.jboss.webbeans.test.ejb.invalid.CairnsTerrier;
import org.jboss.webbeans.test.ejb.invalid.FoxTerrier;
import org.jboss.webbeans.test.ejb.invalid.TibetanTerrier;
import org.jboss.webbeans.test.ejb.invalid.YorkshireTerrier;
import org.jboss.webbeans.test.ejb.valid.BullTerrier;
import org.jboss.webbeans.test.ejb.valid.Pomeranian;
import org.jboss.webbeans.test.mock.MockManagerImpl;
import org.jboss.webbeans.util.BeanFactory;
import org.testng.annotations.Test;
/**
* Temporary name until synchronized with David Allen
*
* @author Nicklas Karlsson
* @author David Allen
*
*/
@SpecVersion("20081206")
public class NewEventTest extends AbstractTest
{
public static class AnEventType
{
}
public static class ATemplatedEventType<T>
{
}
public static class AnObserver implements Observer<AnEventType>
{
public boolean wasNotified = false;
public void notify(AnEventType event)
{
wasNotified = true;
}
}
public static class AnObserverWithException implements Observer<AnEventType>
{
public boolean wasNotified = false;
public RuntimeException theException = new RuntimeException("RE1");
public void notify(AnEventType event)
{
wasNotified = true;
throw theException;
}
}
@SuppressWarnings("unchecked")
@Test(groups = "events")
public void testEventBeanCreation()
{
SimpleBean<MyTest> myTestBean = BeanFactory.createSimpleBean(MyTest.class, manager);
boolean found = false;
for (AnnotatedField field : myTestBean.getInjectableFields())
{
if (field.isAnnotationPresent(Observable.class))
{
EventBean eventBean = BeanFactory.createEventBean(field, manager);
Event<Param> event = eventBean.create();
assert event != null;
found = true;
}
}
assert found;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.1")
public void testEventTypeIncludesAllSuperclassesAndInterfacesOfEventObject()
{
assert false;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.2")
public void testManagerFireEvent()
{
// First a simple event with no bindings is fired
AnEventType anEvent = new AnEventType();
manager.fireEvent(anEvent);
// Next an event with some event bindings is fired
manager.fireEvent(anEvent, new RoleBinding("Admin"));
}
/**
* If the type of the event object passed to fireEvent() contains type
* variables or wildcards, an IllegalArgumentException is thrown
*/
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertion(section = { "8.1", "8.2" })
public void testManagerFireEventWithEventTypeParametersFails()
{
ATemplatedEventType<String> anEvent = new ATemplatedEventType<String>();
manager.fireEvent(anEvent);
}
/**
* If the type of the event object passed to fireEvent() contains type
* variables or wildcards, an IllegalArgumentException is thrown
*/
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertion(section = { "8.1", "8.2" })
public void testManagerFireEventWithEventTypeWildcardsFails()
{
// Although the above test is really the same as with a wildcard, we will
// test
// it anyhow since the specification calls it out separately.
ATemplatedEventType<?> anEventOnAnyType = new ATemplatedEventType<String>();
manager.fireEvent(anEventOnAnyType);
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertion(section = { "8.1", "8.2" })
public void testManagerFireEventWithNonBindingAnnotationsFails()
{
// The specs are not exactly clear on what is supposed to happen here,
// but borrowing from Section 8.3, we'll expect the same behavior here
// for a consistent API.
// TODO Verify that fireEvent should fail on non-binding annotations
AnEventType anEvent = new AnEventType();
manager.fireEvent(anEvent, new AnimalStereotypeAnnotationLiteral());
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.3")
public void testManagerAddObserver()
{
Observer<AnEventType> observer = new AnObserver();
// First test with the Class<T> of the event type
manager.addObserver(observer, AnEventType.class);
Set<Observer<AnEventType>> resolvedObservers = manager.resolveObservers(new AnEventType());
assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 1;
assert resolvedObservers.iterator().next() == observer;
// Now test with the TypeLiteral<T> of the event type
observer = new AnObserver();
manager.addObserver(observer, new TypeLiteral<AnEventType>()
{
});
resolvedObservers = manager.resolveObservers(new AnEventType());
assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 2;
boolean foundObserver = false;
for (Observer<AnEventType> obs : resolvedObservers)
{
if (obs == observer)
{
foundObserver = true;
break;
}
}
assert foundObserver;
// Try adding an observer with some binding types
observer = new AnObserver();
Annotation[] bindingTypes = new Annotation[] { new RoleBinding("Admin"), new RoleBinding("Manager") };
manager.addObserver(observer, AnEventType.class, bindingTypes);
resolvedObservers = manager.resolveObservers(new AnEventType(), bindingTypes);
assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 3;
foundObserver = false;
for (Observer<AnEventType> obs : resolvedObservers)
{
if (obs == observer)
{
foundObserver = true;
break;
}
}
assert foundObserver;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.3")
public void testManagerRemoveObserver()
{
Observer<AnEventType> observer = new AnObserver();
// First test with the Class<T> of the event type
manager.addObserver(observer, AnEventType.class);
manager.removeObserver(observer, AnEventType.class);
Set<Observer<AnEventType>> resolvedObservers = manager.resolveObservers(new AnEventType());
assert resolvedObservers.isEmpty();
// Now test with the TypeLiteral<T> of the event type
observer = new AnObserver();
manager.addObserver(observer, new TypeLiteral<AnEventType>()
{
});
manager.removeObserver(observer, new TypeLiteral<AnEventType>()
{
});
resolvedObservers = manager.resolveObservers(new AnEventType());
assert resolvedObservers.isEmpty();
// Also test with binding types
Annotation[] bindings = new Annotation[] { new RoleBinding("Admin") };
manager.addObserver(observer, AnEventType.class, bindings);
manager.removeObserver(observer, AnEventType.class);
resolvedObservers = manager.resolveObservers(new AnEventType(), bindings);
assert !resolvedObservers.isEmpty();
manager.removeObserver(observer, AnEventType.class, new RoleBinding("Admin"));
resolvedObservers = manager.resolveObservers(new AnEventType(), bindings);
assert resolvedObservers.isEmpty();
}
@Test(groups = { "events" }, expectedExceptions = { DuplicateBindingTypeException.class })
@SpecAssertion(section = "8.3")
public void testMultipleInstancesOfSameBindingTypeWhenAddingObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
manager.addObserver(observer, AnEventType.class, new RoleBinding("Admin"), new TameAnnotationLiteral(), new TameAnnotationLiteral());
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertion(section = "8.3")
public void testNonBindingTypePassedToAddObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
manager.addObserver(observer, AnEventType.class, new AnimalStereotypeAnnotationLiteral());
}
@Test(groups = { "events" }, expectedExceptions = { DuplicateBindingTypeException.class })
@SpecAssertion(section = "8.3")
public void testMultipleInstancesOfSameBindingTypeWhenRemovingObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
manager.addObserver(observer, AnEventType.class);
manager.removeObserver(observer, AnEventType.class, new RoleBinding("Admin"), new TameAnnotationLiteral(), new TameAnnotationLiteral());
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertion(section = "8.3")
public void testNonBindingTypePassedToRemoveObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
manager.addObserver(observer, AnEventType.class);
manager.removeObserver(observer, AnEventType.class, new AnimalStereotypeAnnotationLiteral());
}
@Test(groups = { "events" })
@SpecAssertion(section = { "8.1", "8.4" })
public void testConsumerNotifiedWhenEventTypeAndAllBindingsMatch()
{
AnObserver observer1 = new AnObserver();
AnObserver observer2 = new AnObserver();
manager.addObserver(observer1, AnEventType.class);
manager.addObserver(observer2, AnEventType.class);
// Fire an event that will be delivered to the two above observers
AnEventType anEvent = new AnEventType();
manager.fireEvent(anEvent);
assert observer1.wasNotified;
assert observer2.wasNotified;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.4")
public void testObserverThrowsExceptionAbortsNotifications()
{
AnObserver observer = new AnObserver();
AnObserverWithException anotherObserver = new AnObserverWithException();
manager.addObserver(anotherObserver, AnEventType.class);
manager.addObserver(observer, AnEventType.class);
// Fire an event that will be delivered to the two above observers
AnEventType anEvent = new AnEventType();
boolean fireFailed = false;
try
{
manager.fireEvent(anEvent);
}
catch (Exception e)
{
if (anotherObserver.theException.equals(e))
fireFailed = true;
}
assert fireFailed;
assert anotherObserver.wasNotified;
// TODO This cannot properly test for event processing abort
// assert !observer.wasNotified;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.4")
public void testObserverCalledBeforeTransactionCompleteMaySetRollbackOnly()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.4")
public void testObserverManipulatingJTATransactionsDirectlyFails()
{
assert false;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5")
public void testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(Pomeranian.class);
assert beans.size() == 1 + MockManagerImpl.BUILT_IN_BEANS;
Set<Observer<MockManagerImpl>> observers = manager.resolveObservers(manager, new InitializedBinding());
assert observers.size() == 2;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5")
public void testObserverMethodOnEnterpriseBeanNotBusinessMethodOrStaticFails()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(TibetanTerrier.class);
assert beans.size() == 1 + MockManagerImpl.BUILT_IN_BEANS;
Set<Observer<MockManagerImpl>> observers = manager.resolveObservers(manager, new InitializedBinding());
assert observers.size() == 1;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5")
public void testMultipleObserverMethodsOK()
{
// Somewhat of a cheat, but this other test already does have 2 observer
// methods
// for the same event type and event bindings.
testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic();
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = { "8.5.1", "8.5.2" })
public void testObserverMethodMustHaveOnlyOneEventParameter()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(YorkshireTerrier.class);
assert beans != null;
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = "8.5.1")
public void testObserverMethodCannotObserveParameterizedEvents()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(BostonTerrier.class);
assert beans != null;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5.1")
public void testObserverMethodWithoutBindingTypesObservesEventsWithoutBindingTypes()
{
// This observer has no binding types specified
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(Pomeranian.class);
assert beans.size() == 1 + MockManagerImpl.BUILT_IN_BEANS;
// Resolve registered observers with an event containing no binding types
Set<Observer<String>> resolvedObservers = manager.resolveObservers("A new event");
assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 1;
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = "8.5.2")
public void testObserverMethodAnnotatedProducesFails()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(BorderTerrier.class);
assert beans != null;
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = "8.5.2")
public void testObserverMethodAnnotatedInitializerFails()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(AustralianTerrier.class);
assert beans != null;
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = "8.5.2")
public void testObserverMethodAnnotatedDestructorFails()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(CairnsTerrier.class);
assert beans != null;
}
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = "8.5.2")
public void testObserverMethodWithDisposesParamFails()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(FoxTerrier.class);
assert beans != null;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5.2")
public void testObserverMethodMayHaveMultipleBindingTypes()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(BullTerrier.class);
assert beans != null;
// If we can resolve the observer with the two binding types,
// then it worked
Set<Observer<String>> resolvedObservers = manager.resolveObservers("An event object", new RoleBinding("Admin"), new TameAnnotationLiteral());
assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 1;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.3")
public void testXMLDefinedObserverMethodIgnoresBindingAnnotations()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.3")
public void testXMLDefinedObserverNotFindingImplementationMethodFails()
{
assert false;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5.4")
public void testObserverMethodReceivesInjectionsOnNonObservesParameters()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(BananaSpider.class);
assert beans != null;
}
/**
* Tests that a conditional observer is not notified of events until after it
* is created by some other separate action.
*
* This test will not be supported till after Alpha 1 of the RI.
*/
@Test(groups = { "broken", "events" })
@SpecAssertion(section = "8.5.5")
public void testConditionalObserver()
{
webBeansBootstrap.registerBeans(RecluseSpider.class);
manager.fireEvent("New string event");
// Should not be notified since bean is not instantiated yet
assert !RecluseSpider.notified;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.1")
public void testTransactionalObserverCanOnlyObserveSinglePhase()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.6")
public void testTransactionalObserverNotifiedImmediatelyWhenNoTransactionInProgress()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.6")
public void testAfterTransactionCompletionObserver()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.6")
public void testAfterTransactionSuccessObserver()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.6")
public void testAfterTransactionFailureObserver()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.6")
public void testBeforeTransactionCompletionObserver()
{
assert false;
}
@Test(groups = { "events" })
@SpecAssertion(section = "8.5.7")
public void testObserverMethodRegistration()
{
// For now, this test is checking the registration of methods
testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic();
}
/**
*
*/
@Test(groups = { "broken", "events" })
@SpecAssertion(section = "8.5.7")
public void testEnterpriseBeanObserverMethodCalledWithCallerContext()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(Pomeranian.class);
assert beans.size() == 1;
String event = "A new event";
Set<Observer<String>> observers = manager.resolveObservers(event);
assert observers.size() == 1;
manager.fireEvent(event);
assert Thread.currentThread().equals(Pomeranian.notificationThread);
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.5.7")
public void testTransactionalObserverThrownExceptionIsCaughtAndLogged()
{
assert false;
}
@Test(groups = { "events" }, expectedExceptions={ TeaCupPomeranian.OversizedException.class })
@SpecAssertion(section = "8.5.7")
public void testNonTransactionalObserverThrownNonCheckedExceptionIsRethrown()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(TeaCupPomeranian.class);
assert beans.size() == 1 + MockManagerImpl.BUILT_IN_BEANS;
manager.fireEvent("Another event");
}
@Test(groups = { "events" }, expectedExceptions={ ObserverException.class })
@SpecAssertion(section = "8.5.7")
public void testNonTransactionalObserverThrownCheckedExceptionIsWrappedAndRethrown()
{
Set<AbstractBean<?, ?>> beans = webBeansBootstrap.createBeans(TeaCupPomeranian.class);
assert beans.size() == 1 + MockManagerImpl.BUILT_IN_BEANS;
manager.fireEvent(new Integer(1));
}
@Test(groups = { "events" }, expectedExceptions = { DuplicateBindingTypeException.class })
@SpecAssertion(section = "8.6")
public void testDuplicateBindingsToFireFails()
{
webBeansBootstrap.registerBeans(SweeWaxbill.class);
SweeWaxbill bean = manager.getInstanceByType(SweeWaxbill.class);
bean.methodThatFiresEvent();
}
@Test(groups = { "events" }, expectedExceptions={ DuplicateBindingTypeException.class })
@SpecAssertion(section = "8.6")
public void testDuplicateBindingsToObservesFails()
{
webBeansBootstrap.registerBeans(SweeWaxbill.class);
SweeWaxbill bean = manager.getInstanceByType(SweeWaxbill.class);
bean.methodThatRegistersObserver();
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testNonBindingTypePassedToFireFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testNonBindingTypePassedToObservesFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnField()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnParameterOfProducerMethod()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnParameterOfInitializerMethod()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnParameterOfDisposalMethod()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnParameterOfRemoveMethod()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnParameterOfConstructor()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableAnnotationOnNonEventTypeInjectionPointFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableannotationOnInjectionPointWithoutTypeParameterFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableannotationOnInjectionPointWithWildcardedTypeParameterFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObservableannotationOnInjectionPointWithTypeVariabledTypeParameterFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testImplicitObserverBeanMatchesAPITypeOfInectionPoint()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testImplicitObserverBeanMatchesBindingAnnotationsOfInjectionPoint()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testImplicitObserverBeanHasStandardDeploymentType()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testImplicitObserverBeanHasDependentScope()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testFireMethodCallsManagerFireWithEventObject()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testFireMethodCallsManagerFireWithBindingAnnotationsExceptObservable()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testFireMethodCallsManagerFireWithAllBindingAnnotationInstances()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObserveMethodCallsManagerAddObserverWithObserverObject()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObserveMethodCallsManagerAddObserverWithAllBindingAnnotationsExceptObservable()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.6")
public void testObserveMethodCallsManagerAddObserverWithAllBindingAnnotationInstance()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testEventObjectContainsTypeVariablesWhenResolvingFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testEventObjectContainsWildcardsWhenResolvingFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testDuplicateBindingTypesWhenResolvingFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testNonBindingTypeAnnotationWhenResolvingFails()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testResolvingChecksEventType()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testResolvingChecksTypeParameters()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testResolvingChecksBindingTypes()
{
assert false;
}
@Test(groups = { "stub", "events" })
@SpecAssertion(section = "8.7")
public void testResolvingChecksBindingTypeMembers()
{
assert false;
}
}