Package com.rescripter.resources

Examples of com.rescripter.resources.ScriptLoader


  private Mockery context = new Mockery();
 
  @Test public void
  delegates_to_pushed_loader() throws IOException, CoreException {
    ScriptStack stack = new ScriptStack();
    final ScriptLoader loader = context.mock(ScriptLoader.class);
    final String filename = "foo.rs";
   
    context.checking(new Expectations() {{
      oneOf(loader).file(filename);
    }});
View Full Code Here


  }
 
  @Test public void
  pushes_and_pops_loaders() throws IOException, CoreException {
    ScriptStack stack = new ScriptStack();
    final ScriptLoader loader1 = context.mock(ScriptLoader.class, "loader1");
    final ScriptLoader loader2 = context.mock(ScriptLoader.class, "loader2");
    final Sequence sequence = context.sequence("loaderSequence");
    final String filename = "foo.rs";
   
    context.checking(new Expectations() {{
      oneOf(loader1).file(filename); inSequence(sequence);
View Full Code Here

TOP

Related Classes of com.rescripter.resources.ScriptLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.