Skip to content

Commit

Permalink
Merge pull request #35 from DoclerLabs/hotfix/whitespace-generic
Browse files Browse the repository at this point in the history
test added for reflected type T<{}>
  • Loading branch information
FrancisBourre authored Nov 28, 2016
2 parents 390effd + 6977ae8 commit 551a5d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/hex/di/InjectorTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ class InjectorTest
var injectee = new InterfaceInjecteeWithGeneric();
var s = new ClazzWithGeneric<String>();
var i = new ClazzWithGeneric<Int>();
var o = new ClazzWithGeneric<{}>();
this.injector.mapClassName( "hex.di.mock.types.InterfaceWithGeneric<String>" ).toValue( s );
this.injector.mapClassName( "hex.di.mock.types.InterfaceWithGeneric<Int>" ).toValue( i );
this.injector.mapClassName( "hex.di.mock.types.InterfaceWithGeneric<{}>" ).toValue( o );
this.injector.injectInto( injectee );
Assert.equals( s, injectee.stringProperty, "Value should have been injected" );
Assert.equals( i, injectee.intProperty, "Value should have been injected" );
Expand Down
3 changes: 3 additions & 0 deletions test/hex/di/mock/injectees/InterfaceInjecteeWithGeneric.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class InterfaceInjecteeWithGeneric implements IInjectorContainer
@Inject
public var intProperty : InterfaceWithGeneric<Int>;

@Inject
public var objectProperty : InterfaceWithGeneric<{}>;

public function new()
{

Expand Down

0 comments on commit 551a5d5

Please sign in to comment.