Lines Matching refs:ofile

789         final File ofile = new File("ofile");
792 ofile.delete();
804 Redirect.from(ofile),
805 Redirect.to(ofile),
806 Redirect.appendTo(ofile),
832 equal(Redirect.to(ofile).type(), Redirect.Type.WRITE);
833 equal(Redirect.to(ofile).toString(),
834 "redirect to write to file \"ofile\"");
835 equal(Redirect.to(ofile).file(), ofile);
836 equal(Redirect.to(ofile),
837 Redirect.to(ofile));
838 equal(Redirect.to(ofile).hashCode(),
839 Redirect.to(ofile).hashCode());
841 equal(Redirect.appendTo(ofile).type(), Redirect.Type.APPEND);
871 pb.redirectOutput(ofile);
872 equal(pb.redirectOutput().file(), ofile);
873 equal(pb.redirectOutput(), Redirect.to(ofile));
881 pb.redirectInput(Redirect.to(ofile)); }},
883 pb.redirectInput(Redirect.appendTo(ofile)); }},
900 equal(fileContents(ofile), "standard output");
904 ofile.delete();
915 equal(fileContents(ofile),
920 ofile.delete();
928 setFileContents(ofile, "ofile-contents");
930 pb.redirectOutput(Redirect.appendTo(ofile));
935 equal(fileContents(ofile),
936 "ofile-contents" + "standard output");
941 ofile.delete();
949 setFileContents(ofile, "ofile-contents");
951 pb.redirectOutput(ofile);
955 equal(fileContents(ofile), "standard output");
959 ofile.delete();
967 setFileContents(ofile, "ofile-contents");
969 Redirect appender = Redirect.appendTo(ofile);
974 equal(fileContents(ofile),
975 "ofile-contents" +
982 ofile.delete();
1033 redirectIO(pb, PIPE, to(ofile), PIPE);
1050 redirectIO(pb, PIPE, to(ofile), to(efile));
1056 equal(fileContents(ofile), "standard output");
1062 redirectIO(pb, from(tmpFile), to(ofile), to(efile));
1065 equal(fileContents(ofile), "standard output");
1074 ofile.delete();