RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / RobustTransformationTest.java
index 967b0e2ba3300b41b1951470d141b09cb62bb6c1..5e73d6fe239ab0557f12c9d701a63e1ae958433d 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.*;
@@ -35,8 +35,8 @@ public class RobustTransformationTest {
     @Before
     public void setUp() {
         transformation = mock(Transformation.class);
-        robust = new RobustTransformation(new Id<Transformation>(100),
-            transformation);
+        when(transformation.getId()).thenReturn(new Id<Transformation>("t1"));
+        robust = new RobustTransformation("transformation", transformation);
         source = mock(DOMSource.class);
         resSource = mock(DOMSource.class);
     }