You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by ha...@apache.org on 2004/06/21 19:40:09 UTC
svn commit: rev 21552 - excalibur/sandbox/fortress2/fortress2-impl/src/test/org/apache/excalibur/fortress/test
Author: hammett
Date: Mon Jun 21 10:40:09 2004
New Revision: 21552
Modified:
excalibur/sandbox/fortress2/fortress2-impl/src/test/org/apache/excalibur/fortress/test/DefaultContainerTestCase.java
Log:
Testing CRLF pattern in SVN
Modified: excalibur/sandbox/fortress2/fortress2-impl/src/test/org/apache/excalibur/fortress/test/DefaultContainerTestCase.java
==============================================================================
--- excalibur/sandbox/fortress2/fortress2-impl/src/test/org/apache/excalibur/fortress/test/DefaultContainerTestCase.java (original)
+++ excalibur/sandbox/fortress2/fortress2-impl/src/test/org/apache/excalibur/fortress/test/DefaultContainerTestCase.java Mon Jun 21 10:40:09 2004
@@ -1,62 +1,62 @@
-/*
- * Copyright 2003-2004 The Apache Software Foundation
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * 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.apache.excalibur.fortress.test;
-
-import org.apache.excalibur.fortress.DefaultContainer;
-import org.apache.excalibur.fortress.Container;
-import org.apache.excalibur.fortress.tck.AbstractContainerTestCase;
-import org.apache.excalibur.fortress.test.components.pojos.CrazyPersonFactory;
-import org.apache.excalibur.fortress.test.components.pojos.MarriageService;
-import org.apache.excalibur.fortress.test.components.pojos.MarriageStatus;
-
-/**
- *
- * @author <a href="mailto:dev@excalibur.apache.org">Excalibur Development Team</a>
- */
-public class DefaultContainerTestCase extends AbstractContainerTestCase
-{
- protected Container createContainer()
- {
- return new DefaultContainer();
- }
-
- public void testAddComponent()
- {
- getContainer().addComponent("marriage", MarriageService.class);
- getContainer().addComponent("crazy", CrazyPersonFactory.class);
-
- assertEquals("Component weren't successfull registered.", 2, getContainer().getComponents().size());
- }
-
- public void testGetComponent()
- {
- getContainer().addComponent("marriage", MarriageService.class);
- getContainer().addComponent("crazy", CrazyPersonFactory.class);
-
- Object component = getContainer().getComponent("marriage");
- assertNotNull( "Container didn't return a component instance", component);
- assertTrue( "Seems like the container returned a different instance", component instanceof MarriageService );
-
- MarriageService service = (MarriageService) component;
-
- MarriageStatus status = service.createMarriage();
- assertNotNull( "service seems to be not functional", status );
- assertNotNull( "service seems to be not functional", status.getPerson1() );
- assertNotNull( "service seems to be not functional", status.getPerson2() );
- }
-}
+/*
+ * Copyright 2003-2004 The Apache Software Foundation
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.apache.excalibur.fortress.test;
+
+import org.apache.excalibur.fortress.DefaultContainer;
+import org.apache.excalibur.fortress.Container;
+import org.apache.excalibur.fortress.tck.AbstractContainerTestCase;
+import org.apache.excalibur.fortress.test.components.pojos.CrazyPersonFactory;
+import org.apache.excalibur.fortress.test.components.pojos.MarriageService;
+import org.apache.excalibur.fortress.test.components.pojos.MarriageStatus;
+
+/**
+ *
+ * @author <a href="mailto:dev@excalibur.apache.org">Excalibur Development Team</a>
+ */
+public class DefaultContainerTestCase extends AbstractContainerTestCase
+{
+ protected Container createContainer()
+ {
+ return new DefaultContainer();
+ }
+
+ public void testAddComponent()
+ {
+ getContainer().addComponent("marriage", MarriageService.class);
+ getContainer().addComponent("crazy", CrazyPersonFactory.class);
+
+ assertEquals("Component weren't successfull registered.", 2, getContainer().getComponents().size());
+ }
+
+ public void testGetComponent()
+ {
+ getContainer().addComponent("marriage", MarriageService.class);
+ getContainer().addComponent("crazy", CrazyPersonFactory.class);
+
+ Object component = getContainer().getComponent("marriage");
+ assertNotNull( "Container didn't return a component instance", component);
+ assertTrue( "Seems like the container returned a different instance", component instanceof MarriageService );
+
+ MarriageService service = (MarriageService) component;
+
+ MarriageStatus status = service.createMarriage();
+ assertNotNull( "service seems to be not functional", status );
+ assertNotNull( "service seems to be not functional", status.getPerson1() );
+ assertNotNull( "service seems to be not functional", status.getPerson2() );
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org