Lines Matching defs:expected
66 void check(Object result, String expected) {
67 out.format("\tExpected: %s\n", expected);
70 if (expected == null) return;
73 if (expected != null && result.toString().equals(expected.toString()))
79 void check(Object result, boolean expected) {
80 check(result, Boolean.toString(expected));
83 PathOps root(String expected) {
86 check(path.getRoot(), expected);
90 PathOps parent(String expected) {
93 check(path.getParent(), expected);
97 PathOps name(String expected) {
100 check(path.getFileName(), expected);
104 PathOps element(int index, String expected) {
107 check(path.getName(index), expected);
111 PathOps subpath(int startIndex, int endIndex, String expected) {
114 check(path.subpath(startIndex, endIndex), expected);
164 PathOps resolve(String other, String expected) {
167 check(path.resolve(other), expected);
171 PathOps resolveSibling(String other, String expected) {
174 check(path.resolveSibling(other), expected);
178 PathOps relativize(String other, String expected) {
182 check(path.relativize(that), expected);
186 PathOps normalize(String expected) {
189 check(path.normalize(), expected);
193 PathOps string(String expected) {
196 check(path, expected);
202 out.println("InvalidPathException not thrown as expected");