Sha256: 1417f038a324f183c803056f728f7468f327651f545c8bc4c1729458cf960f36
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
package <%= package_name %> { import asunit.asserts.*; import flash.events.EventDispatcher; import org.robotlegs.adapters.SwiftSuspendersInjector; import <%= view_package_name %>.<%= view_class_name %>; public class <%= class_name %> { private var instance:<%= instance_name %>; [Before] public function setUp():void { instance=new <%= instance_name %>(); instance.view=new <%= view_class_name %>(); instance.view.parentInjector=new SwiftSuspendersInjector(); instance.setViewComponent(instance.view); instance.eventDispatcher=new EventDispatcher(); instance.onRegister(); } [After] public function tearDown():void { instance.onRemove(); instance=null; } [Test] public function should_be_instantiated():void { assertTrue(instance is <%= instance_name %>); } [Test] public function view_should_be_instantiated():void { assertTrue(instance.view is <%= view_class_name %>); } [Test] public function should_fail():void { assertTrue(false); } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gator-as3-robotlegs-0.0.3.pre | lib/gator/as3/robotlegs/templates/as3/robotlegs/test/asunit4/mediator.as.tt |