Search in sources :

Example 1 with RemoteOperations

use of com.iplanet.dpro.session.operations.strategies.RemoteOperations in project OpenAM by OpenRock.

the class RemoteSessionOperationStrategyTest method shouldProvideRemoteOperationStrategy.

@Test
public void shouldProvideRemoteOperationStrategy() {
    // Given
    RemoteOperations mockRemote = mock(RemoteOperations.class);
    RemoteSessionOperationStrategy strategy = new RemoteSessionOperationStrategy(mockRemote);
    // When
    SessionOperations operation = strategy.getOperation(null);
    // Then
    assertThat(operation).isEqualTo(mockRemote);
}
Also used : RemoteOperations(com.iplanet.dpro.session.operations.strategies.RemoteOperations) Test(org.testng.annotations.Test)

Aggregations

RemoteOperations (com.iplanet.dpro.session.operations.strategies.RemoteOperations)1 Test (org.testng.annotations.Test)1