verifyNoMoreInteractions(mockFixture);
}
@Test
public void fromRawStringMapsCheckedExceptionsOfParseIntoRuntimeException() throws Exception {
Fixture mockFixture = mock(Fixture.class);
adapter.init(mockFixture, String.class);
when(mockFixture.parse("ss", String.class)).thenThrow(new Exception("some badness happened!"));
try {
adapter.fromString("ss");
fail("Should have thrown an exception");
} catch (RuntimeException e) {
assertThat(e.getMessage(), is(equalTo("Unable to parse as smartrics.rest.fitnesse.fixture.support.RestDataTypeAdapterTest$1: ss")));