Lines Matching refs:equal

74         equal(p.waitFor(), 0);
75 equal(p.exitValue(), 0);
202 equal(size, environ.size());
203 equal(size, environ.entrySet().size());
204 equal(size, environ.keySet().size());
205 equal(size, environ.values().size());
208 equal(isEmpty, environ.isEmpty());
209 equal(isEmpty, environ.entrySet().isEmpty());
210 equal(isEmpty, environ.keySet().isEmpty());
211 equal(isEmpty, environ.values().isEmpty());
224 equal(environ.get("Foo"), null);
225 equal(environ.remove("Foo"), null);
234 equal(environ.get("Foo"), "Bahrein");
243 equal(environ.get("Foo"), "NewValue");
343 equal(System.getenv("PATH"), null);
354 equal(run(pb).exitValue(), True.exitValue());
357 equal(run(pb).exitValue(), False.exitValue());
362 equal(System.getenv("PATH"), "dir1:dir2:");
406 equal(run(pb).exitValue(), True.exitValue());
412 equal(run(pb).exitValue(), True.exitValue());
428 equal(run(pb).exitValue(),
431 equal(run(pb).exitValue(),
437 equal(run(pb).exitValue(),
442 equal(run(pb).exitValue(),
447 equal(run(pb).exitValue(),
452 equal(run(pb).exitValue(),
464 equal(run(pb).out(), "hello dir1/prog world\n");
465 equal(run(pb).exitValue(), True.exitValue());
474 equal(run(pb).out(), "hello world\n");
475 equal(run(pb).exitValue(), True.exitValue());
488 equal(run(pb).exitValue(), True.exitValue());
491 equal(run(pb).exitValue(), False.exitValue());
519 equal(r.exitValue(), 0);
520 equal(r.out(), "");
521 equal(r.err(), "");
569 equal(getenvInChild(pb,"ASCIINAME"), tested);
695 equal(entrySet.size(), keySet.size());
696 equal(entrySet.size(), values.size());
706 equal(s1.toString(), s2.toString());
721 equal(entry.getKey(), key);
722 equal(entry.getValue(), value);
733 equal(map1.size(), map2.size());
734 equal(map1.isEmpty(), map2.isEmpty());
736 equal(map1.get(key), map2.get(key));
739 equal(map1, map2);
740 equal(map2, map1);
741 equal(map1.entrySet(), map2.entrySet());
742 equal(map2.entrySet(), map1.entrySet());
743 equal(map1.keySet(), map2.keySet());
744 equal(map2.keySet(), map1.keySet());
746 equal(map1.hashCode(), map2.hashCode());
747 equal(map1.entrySet().hashCode(), map2.entrySet().hashCode());
748 equal(map1.keySet().hashCode(), map2.keySet().hashCode());
754 equal(pb.redirectInput(), in);
755 equal(pb.redirectOutput(), out);
756 equal(pb.redirectError(), err);
810 equal(redirects[i].equals(redirects[j]), (i == j));
815 equal(PIPE.type(), Redirect.Type.PIPE);
816 equal(PIPE.toString(), "PIPE");
817 equal(PIPE.file(), null);
819 equal(INHERIT.type(), Redirect.Type.INHERIT);
820 equal(INHERIT.toString(), "INHERIT");
821 equal(INHERIT.file(), null);
823 equal(Redirect.from(ifile).type(), Redirect.Type.READ);
824 equal(Redirect.from(ifile).toString(),
826 equal(Redirect.from(ifile).file(), ifile);
827 equal(Redirect.from(ifile),
829 equal(Redirect.from(ifile).hashCode(),
832 equal(Redirect.to(ofile).type(), Redirect.Type.WRITE);
833 equal(Redirect.to(ofile).toString(),
835 equal(Redirect.to(ofile).file(), ofile);
836 equal(Redirect.to(ofile),
838 equal(Redirect.to(ofile).hashCode(),
841 equal(Redirect.appendTo(ofile).type(), Redirect.Type.APPEND);
842 equal(Redirect.appendTo(efile).toString(),
844 equal(Redirect.appendTo(efile).file(), efile);
845 equal(Redirect.appendTo(efile),
847 equal(Redirect.appendTo(efile).hashCode(),
868 equal(pb.redirectInput().file(), ifile);
869 equal(pb.redirectInput(), Redirect.from(ifile));
872 equal(pb.redirectOutput().file(), ofile);
873 equal(pb.redirectOutput(), Redirect.to(ofile));
876 equal(pb.redirectError().file(), efile);
877 equal(pb.redirectError(), Redirect.to(efile));
899 equal(r.exitValue(), 0);
900 equal(fileContents(ofile), "standard output");
901 equal(fileContents(efile), "standard error");
902 equal(r.out(), "");
903 equal(r.err(), "");
914 equal(r.exitValue(), 0);
915 equal(fileContents(ofile),
917 equal(fileContents(efile), "");
918 equal(r.out(), "");
919 equal(r.err(), "");
934 equal(r.exitValue(), 0);
935 equal(fileContents(ofile),
937 equal(fileContents(efile),
939 equal(r.out(), "");
940 equal(r.err(), "");
954 equal(r.exitValue(), 0);
955 equal(fileContents(ofile), "standard output");
956 equal(fileContents(efile), "standard error");
957 equal(r.out(), "");
958 equal(r.err(), "");
973 equal(r.exitValue(), 0);
974 equal(fileContents(ofile),
978 equal(fileContents(efile), "efile-contents");
979 equal(r.out(), "");
980 equal(r.err(), "");
999 equal(r.exitValue(), 0);
1000 equal(r.out(), "standard output");
1001 equal(r.err(), "standard error");
1044 equal(r.out(), "standard output");
1045 equal(r.err(), "standard error");
1056 equal(fileContents(ofile), "standard output");
1057 equal(fileContents(efile), "standard error");
1065 equal(fileContents(ofile), "standard output");
1066 equal(fileContents(efile), "standard error");
1099 equal(environ.get("QUUX"), "BAR");
1100 equal(getenvInChild(pb,"QUUX"), "BAR");
1104 equal(environ.get("QUUX"), "bear");
1105 equal(getenvInChild(pb,"QUUX"), "bear");
1110 equal(environ.get("QUUX"), null);
1111 equal(getenvInChild(pb,"QUUX"), "null");
1116 equal(environ.get("QUUX"), null);
1117 equal(getenvInChild(pb,"QUUX"), "null");
1135 equal(result, expected);
1200 equal(pb.command().get(2), "baz");
1298 equal(env.get("\u0000"), null);
1328 equal(pb.directory(), null);
1329 equal(pb.directory(foo).directory(), foo);
1330 equal(pb.directory(null).directory(), null);
1505 equal(output, expected);
1519 equal(output, expected);
1528 equal(getenv(e.getKey()), e.getValue());
1549 equal(pb.directory(), null);
1550 equal(pwdInChild(pb), canonicalUserDir);
1553 equal(pb.directory(), dir);
1554 equal(pwdInChild(pb), dir.getCanonicalPath());
1557 equal(pb.directory(), null);
1558 equal(pwdInChild(pb), canonicalUserDir);
1577 equal(pwdInChild(pb), dir.getCanonicalPath());
1598 equal(r.exitValue(), 1);
1628 equal(getenvInChild1234(pb), "\u5678");
1653 equal(commandOutput, expected);
1660 equal(commandOutput(pb), expected);
1671 equal(commandOutput(p), "\n");
1715 equal(pb.redirectErrorStream(), false);
1716 equal(pb.redirectErrorStream(true), pb);
1717 equal(pb.redirectErrorStream(), true);
1718 equal(pb.redirectErrorStream(false), pb);
1719 equal(pb.redirectErrorStream(), false);
1728 equal(r.out(), "outout");
1729 equal(r.err(), "errerr");
1734 equal(r.out(), "outerrouterr");
1735 equal(r.err(), "");
1749 equal(r.out(), "");
1750 equal(r.err(), "");
1751 equal(r.exitValue(), 0);
1763 equal(r.out(), "");
1764 equal(r.err(), "");
1765 equal(r.exitValue(), True.exitValue());
1848 equal(SIZE, p.getInputStream().available());
1849 equal(SIZE, p.getErrorStream().available());
1857 equal(SIZE, p.getInputStream().read(bytes));
1859 equal((byte) '!', bytes[i]);
1860 equal((byte) 0, bytes[SIZE]);
1862 equal(SIZE, p.getErrorStream().read(bytes));
1864 equal((byte) 'E', bytes[i]);
1865 equal((byte) 0, bytes[SIZE]);
1867 equal(0, p.getInputStream().available());
1868 equal(0, p.getErrorStream().available());
1869 equal(-1, p.getErrorStream().read());
1870 equal(-1, p.getInputStream().read());
1872 equal(p.exitValue(), 5);
1929 equal(-1, r);
2291 static void equal(Object x, Object y) {
2293 else fail(x + " not equal to " + y);}