event listener is now used by the xml router and the publish method of the gateway is
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / TransformationsTest.java
index 9da9c3524abff1a0ecf579336f517525b6b63581..230cd03d73c2e90e3c77fd00abd9c8c3b1579dd0 100644 (file)
@@ -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<String> res = transformations.getPossibleTargetTypes("a");