Lines Matching defs:expected
69 void check(Object result, String expected) {
70 out.format("\tExpected: %s\n", expected);
73 if (expected == null) return;
76 if (expected != null && result.toString().equals(expected.toString()))
82 void check(Object result, boolean expected) {
83 check(result, Boolean.toString(expected));
86 PathOps root(String expected) {
89 check(path.getRoot(), expected);
93 PathOps parent(String expected) {
96 check(path.getParent(), expected);
100 PathOps name(String expected) {
103 check(path.getFileName(), expected);
107 PathOps element(int index, String expected) {
110 check(path.getName(index), expected);
114 PathOps subpath(int startIndex, int endIndex, String expected) {
117 check(path.subpath(startIndex, endIndex), expected);
167 PathOps resolve(String other, String expected) {
170 check(path.resolve(other), expected);
174 PathOps relativize(String other, String expected) {
178 check(path.relativize(that), expected);
182 PathOps normalize(String expected) {
185 check(path.normalize(), expected);
189 PathOps string(String expected) {
192 check(path, expected);
209 out.println("InvalidPathException not thrown as expected");