Started writing tests
This commit is contained in:
parent
e2de94eb7b
commit
93e8c9a90e
3 changed files with 77 additions and 0 deletions
src/main/java/info/ebenoit/ebul/cmp
|
@ -1,6 +1,10 @@
|
|||
package info.ebenoit.ebul.cmp;
|
||||
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This class carries information about a dependency's target. Dependencies may be specified by name or by type.
|
||||
*
|
||||
|
@ -29,6 +33,7 @@ public class DependencyInfo
|
|||
*/
|
||||
public DependencyInfo( final String name )
|
||||
{
|
||||
Objects.requireNonNull( name );
|
||||
this.name = name;
|
||||
this.klass = null;
|
||||
}
|
||||
|
@ -45,6 +50,7 @@ public class DependencyInfo
|
|||
public DependencyInfo( final Class< ? > klass )
|
||||
throws ComponentDefinitionException
|
||||
{
|
||||
Objects.requireNonNull( klass );
|
||||
this.name = null;
|
||||
this.klass = klass;
|
||||
if ( klass.isPrimitive( ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue