Package com.rescripter.resources

Examples of com.rescripter.resources.FileContentsReader


  @Test public void
  loads_a_file_from_the_workspace() throws IOException, CoreException {
   
    final ScriptRunner scriptRunner = context.mock(ScriptRunner.class);
    final ScriptStack scriptStack = context.mock(ScriptStack.class);
    final FileContentsReader fileReader = context.mock(FileContentsReader.class);
   
    final IFile location = context.mock(IFile.class, "location");
    final IContainer container = context.mock(IContainer.class);
   
    final String otherFilename = "other/file.rs";
View Full Code Here


        }
    }
   
    @Test public void
    runs_script() throws IOException, CoreException {
      final FileContentsReader fileReader = context.mock(FileContentsReader.class);
     
      context.checking(new Expectations() {{
        oneOf(fileReader).getContents(with(any(InputStream.class))); will(returnValue(""));
      }});
     
View Full Code Here

        assertThat(stuff.called, is(true));
    }
   
    @Test public void
    scope_includes_required_classes() throws IOException, CoreException {
      final FileContentsReader fileReader = context.mock(FileContentsReader.class);
     
      context.checking(new Expectations() {{
        oneOf(fileReader).getContents(with(any(InputStream.class))); will(returnValue(""));
      }});
View Full Code Here

      assertThat(runner.getProperty("ASTTokenFinder"), instanceOf(ASTTokenFinder.class));
    }
   
    @Test public void
    get_property_returns_variables_written_from_script() throws IOException, CoreException {
      final FileContentsReader fileReader = context.mock(FileContentsReader.class);
     
      context.checking(new Expectations() {{
        oneOf(fileReader).getContents(with(any(InputStream.class))); will(returnValue(""));
      }});
     
View Full Code Here

TOP

Related Classes of com.rescripter.resources.FileContentsReader

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.