Ray Milkey
Committed by Gerrit Code Review

Unit tests for OpenFlowControllerImplTest

Change-Id: I8a6d68f66e5a96597c4a0793940c3f707837f555
......@@ -41,6 +41,9 @@ import org.projectfloodlight.openflow.protocol.OFVersion;
* Testing adapter for the OpenFlow switch driver class.
*/
public class OpenflowSwitchDriverAdapter implements OpenFlowSwitchDriver {
RoleState role = RoleState.MASTER;
@Override
public void setAgent(OpenFlowAgent agent) {
......@@ -218,12 +221,12 @@ public class OpenflowSwitchDriverAdapter implements OpenFlowSwitchDriver {
@Override
public void setRole(RoleState role) {
this.role = role;
}
@Override
public RoleState getRole() {
return null;
return role;
}
@Override
......
......@@ -63,6 +63,15 @@
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</dependency>
</dependencies>
<build>
......