11package suites.mediators {
22import flexunit.framework.Assert ;
33import org.mvcexpress.core.MediatorMap ;
4- import org.mvcexpress.core.ModuleManager ;
5- import org.mvcexpress.core.ProxyMap ;
64import org.mvcexpress.core.messenger.Messenger ;
75import org.mvcexpress.core.namespace.pureLegsCore ;
8- import suites.mediators.mediatorObj.MediatorSprite ;
9- import suites.mediators.mediatorObj.MediatorSpriteMediator ;
6+ import org.mvcexpress.core.ProxyMap ;
7+ import suites.testObjects.view.MediatorSprite ;
8+ import suites.testObjects.view.MediatorSpriteMediator ;
109
1110/**
1211 * COMMENT
@@ -48,7 +47,16 @@ public class MediatorTests {
4847
4948 [Test (expects="Error" )]
5049
51- public function test_empty_handler ():void {
50+ public function mediator_constructor_fails ():void {
51+ new MediatorSpriteMediator();
52+ }
53+
54+
55+
56+
57+ [Test (expects="Error" )]
58+
59+ public function mediator_empty_handler ():void {
5260 if (CONFIG :: debug == true ) {
5361 messenger. send ("test_add_empty_handler" );
5462 } else {
@@ -58,31 +66,31 @@ public class MediatorTests {
5866
5967 [Test ]
6068
61- public function test_handler_object_params ():void {
69+ public function mediator_handler_object_params ():void {
6270 messenger. send ("test_handler_object_params" );
6371 }
6472
6573 [Test ]
6674
67- public function test_handler_bad_params ():void {
75+ public function mediator_handler_bad_params ():void {
6876 messenger. send ("test_handler_bad_params" );
6977 }
7078
7179 [Test (expects="Error" )]
7280
73- public function test_handler_two_params ():void {
81+ public function mediator_handler_two_params ():void {
7482 messenger. send ("test_handler_two_params" );
7583 }
7684
7785 [Test ]
7886
79- public function test_handler_two_params_one_optional ():void {
87+ public function mediator_handler_two_params_one_optional ():void {
8088 messenger. send ("test_handler_two_params_one_optional" );
8189 }
8290
8391 [Test ]
8492
85- public function test_same_handler_added_twice_fails ():void {
93+ public function mediator_same_handler_added_twice_fails ():void {
8694 if (CONFIG :: debug == true ) {
8795 try {
8896 testView. tryAddingHandlerTwice();
0 commit comments