X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FTransformationsTest.java;h=230cd03d73c2e90e3c77fd00abd9c8c3b1579dd0;hb=20807d81708bd33b3b5a4616fadcf3ae91bf9508;hp=9da9c3524abff1a0ecf579336f517525b6b63581;hpb=3994d4a35e7404908fc17beac75479c1a72fa915;p=xmlrouter diff --git a/impl/src/test/java/org/wamblee/xmlrouter/impl/TransformationsTest.java b/impl/src/test/java/org/wamblee/xmlrouter/impl/TransformationsTest.java index 9da9c35..230cd03 100644 --- a/impl/src/test/java/org/wamblee/xmlrouter/impl/TransformationsTest.java +++ b/impl/src/test/java/org/wamblee/xmlrouter/impl/TransformationsTest.java @@ -12,7 +12,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.wamblee.xmlrouter.impl; import static junit.framework.Assert.*; @@ -37,7 +37,7 @@ public class TransformationsTest { from = aFrom; to = aTo; } - + @Override public String getName() { return "myname"; @@ -108,6 +108,12 @@ public class TransformationsTest { assertNull(transformations.getPath("C", "B")); } + @Test + public void testUnknownDestination() { + transformations.addTransformation(new MyTransformation("A", "B")); + assertNull(transformations.getPath("A", "D")); + } + @Test public void testWithoutTransformations() { Collection res = transformations.getPossibleTargetTypes("a");