@Test public void failGracefully() throws Exception{ OperationResult<OneArgAction<ObjectContainer>> result = toTest.generateWithBody("container.clos"); assertFalse(result.wasSuccessful()); assertTrue(result.getException().getMessage().contains("error")); }
public OperationResult<OneArgAction<ObjectContainer>> generateWithBody( String methodBody){ return generateWithBody(methodBody, Collections.<String>emptyList()); }
ExecutableClassGenerator { public OperationResult<OneArgAction<ObjectContainer>> generateWithBody( String methodBody){ return generateWithBody(methodBody, Collections.<String>emptyList()); } }
ExecutableClassGenerator { public OperationResult<OneArgAction<ObjectContainer>> generateWithBody( String methodBody){ return generateWithBody(methodBody, Collections.<String>emptyList()); } ExecutableClassGenerator(); }
ExecutableClassGenerator { public OperationResult<OneArgAction<ObjectContainer>> generateWithBody( String methodBody){ return generateWithBody(methodBody, Collections.<String>emptyList()); } ExecutableClassGenerator(); static ExecutableClassGenerator create(); OperationResult<OneArgAction<ObjectContainer>> generateWithBody(
            String methodBody); OperationResult<OneArgAction<ObjectContainer>> generateWithBody(
            String methodBody, Iterable<String> imports); }
ExecutableClassGenerator { public OperationResult<OneArgAction<ObjectContainer>> generateWithBody( String methodBody){ return generateWithBody(methodBody, Collections.<String>emptyList()); } ExecutableClassGenerator(); static ExecutableClassGenerator create(); OperationResult<OneArgAction<ObjectContainer>> generateWithBody(
            String methodBody); OperationResult<OneArgAction<ObjectContainer>> generateWithBody(
            String methodBody, Iterable<String> imports);  }