From 4a9d51977d916d6afc2f2c8ea42bf69917fdeb5a Mon Sep 17 00:00:00 2001 From: Laurent Deketelaere Date: Mon, 15 May 2017 10:20:36 +0200 Subject: [PATCH] remove hex.di.mapping.MappingDefinition --- test/hex/module/ModuleTest.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/hex/module/ModuleTest.hx b/test/hex/module/ModuleTest.hx index 6580c2d..79f6f3c 100644 --- a/test/hex/module/ModuleTest.hx +++ b/test/hex/module/ModuleTest.hx @@ -7,7 +7,6 @@ import hex.di.IBasicInjector; import hex.di.IDependencyInjector; import hex.di.Injector; import hex.di.error.MissingMappingException; -import hex.di.mapping.MappingDefinition; import hex.domain.DomainExpert; import hex.error.Exception; import hex.error.IllegalStateException; @@ -387,7 +386,7 @@ private class MockModuleForTestingRuntimeDependencies extends Module override function _getRuntimeDependencies() : IRuntimeDependencies { var rd : RuntimeDependencies = new RuntimeDependencies(); - rd.addMappedDependencies( [ new MappingDefinition( IService ) ]); + rd.addMappedDependencies([ {type: IService } ]); return rd; } } @@ -486,4 +485,4 @@ private class MockService implements IService { } -} \ No newline at end of file +}