 
 package org.robotlegs.v2.context.impl
 {
+	import flash.display.DisplayObjectContainer;
+	import flash.events.EventDispatcher;
+	import mx.core.UIComponent;
+	import org.flexunit.assertThat;
+	import org.flexunit.asserts.assertEquals;
+	import org.fluint.uiImpersonation.UIImpersonator;
+	import org.hamcrest.object.notNullValue;
+	import org.hamcrest.object.strictlyEqualTo;
 	import org.robotlegs.v2.core.api.IContext;
 	import org.robotlegs.v2.core.impl.Context;
+	import org.swiftsuspenders.Injector;
 
 	public class ContextTests
 	{

			context.initialize();
		}


		[Before]
		public function setUp():void
		{
			context = new Context();
		}

		[After]


		private var context:IContext;

		private var contextView:DisplayObjectContainer;


		/*============================================================================*/
		/* Public Functions                                                           */
		/*============================================================================*/

		[Test]
		public function a_default_dispatcher_should_be_used_if_none_provided():void
		{
			context.initialize();
			assertThat(context.dispatcher, notNullValue());
		}

		[Test]
		public function a_default_injector_should_be_used_if_none_provided():void
		{
			context.initialize();
			assertThat(context.injector, notNullValue());
		}

		[Test]
		public function applicationDomain_that_is_not_explicitly_set_is_determined_by_contextView_if_provided():void
		{
			context.contextView = contextView;
			context.initialize();
			assertEquals(contextView.loaderInfo.applicationDomain, context.applicationDomain);
		}

		[Test(expects='Error')]
		public function destroy_should_throw_if_called_twice():void
