verify();
}
public void test_IAsset_NotFound_Exception()
{
IScriptSource source = newScriptSource();
IScript script = newScript();
PageRenderSupport support = newPageRenderSupport();
IRequestCycle cycle = newCycle(false, null);
trainGetPageRenderSupport(cycle, support);
IMarkupWriter writer = newWriter();
Resource scriptLocation = newResource();
IRender body = newRender();
IComponent container = newComponent();
IAsset scriptAsset = newAsset();
expect(scriptAsset.getResourceLocation()).andReturn(scriptLocation);
Script component = newInstance(Script.class,
"specification", new ComponentSpecification(),
"container", container,
"scriptSource", source,
"scriptAsset", scriptAsset
);
expect(source.getScript(scriptLocation)).andThrow(new RuntimeException());
replay();
component.addBody(body);