Skip to content

Commit

Permalink
Using Mockito for test cases, in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
exitmusic committed May 1, 2012
1 parent d00ad20 commit 7fab21d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .classpath
Expand Up @@ -4,5 +4,6 @@
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 1 addition & 1 deletion build.xml
@@ -1,4 +1,4 @@
<project name="ioc-basic" xmlns:ivy="antlib:org.apache.ivy.ant">
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="ioc-basic">
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve />
</target>
Expand Down
1 change: 1 addition & 0 deletions ivy.xml
Expand Up @@ -2,5 +2,6 @@
<info organisation="com.exitmusic" module="ioc-basic"/>
<dependencies>
<dependency org="org.springframework" name="spring" rev="2.5.5" />
<dependency org="org.mockito" name="mockito-all" rev="1.8.5" />
</dependencies>
</ivy-module>
Expand Up @@ -6,6 +6,9 @@

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import com.exitmusic.user.account.UserAccount;
import com.exitmusic.user.account.UserAccountDAOTestImpl;
Expand All @@ -18,12 +21,15 @@
* @version $Revision$ $Date$
* @since 0.1
*/
@RunWith(MockitoJUnitRunner.class)
public class AuthenticationServiceTestCase {

private AuthenticationService _authenticationService;

@Mock
private UserAccountDAO _userAccountDAO;

@Mock
private UserAccount _userAccount;

/**
Expand Down

0 comments on commit 7fab21d

Please sign in to comment.