diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java index 980690291a2..7db6839a0ff 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/OseeLinkParserTest.java @@ -1,42 +1,42 @@ -/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.framework.skynet.core.test.cases;
-
-import junit.framework.Assert;
-import org.eclipse.osee.framework.jdk.core.util.GUID;
-import org.eclipse.osee.framework.skynet.core.linking.OseeLinkParser;
-
-/**
- * @author Jeff C. Phillips
- */
-public class OseeLinkParserTest {
-
- @org.junit.Test
- public void testOldSchoolLink() throws Exception {
- OseeLinkParser parser = new OseeLinkParser();
- String guid = GUID.create();
- parser.parse(String.format("http://127.0.0.1:8081/get/guid/%s/Define", guid));
-
- Assert.assertEquals(guid, parser.getGuid());
- }
-
- @org.junit.Test
- public void testNewSchoolLink() throws Exception {
- OseeLinkParser parser = new OseeLinkParser();
- String guid = GUID.create();
- int branchId = 12;
- parser.parse(String.format("http://127.0.0.1:8081/Define?guid=%s&branchId=%s", guid, branchId));
-
- Assert.assertEquals(guid, parser.getGuid());
- Assert.assertEquals(branchId, parser.getId());
- }
-}
+/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ + +package org.eclipse.osee.framework.skynet.core.test.cases; + +import junit.framework.Assert; +import org.eclipse.osee.framework.jdk.core.util.GUID; +import org.eclipse.osee.framework.skynet.core.linking.OseeLinkParser; + +/** + * @author Jeff C. Phillips + */ +public class OseeLinkParserTest { + + @org.junit.Test + public void testOldSchoolLink() throws Exception { + OseeLinkParser parser = new OseeLinkParser(); + String guid = GUID.create(); + parser.parse(String.format("http://127.0.0.1:8081/get/guid/%s/Define", guid)); + + Assert.assertEquals(guid, parser.getGuid()); + } + + @org.junit.Test + public void testNewSchoolLink() throws Exception { + OseeLinkParser parser = new OseeLinkParser(); + String guid = GUID.create(); + int branchId = 12; + parser.parse(String.format("http://127.0.0.1:8081/Define?guid=%s&branchId=%s", guid, branchId)); + + Assert.assertEquals(guid, parser.getGuid()); + Assert.assertEquals(branchId, parser.getId()); + } +} |