public void testConstructor5() { String uri = "http://192.168.0.1:8080"; Origin o = null; try { o = new Origin(uri); } catch (OriginException e) { fail(e.getMessage()); } assertEquals(uri, o.toString()); }
public void testConstructor3() { String uri = "https://example.com"; Origin o = null; try { o = new Origin(uri); } catch (OriginException e) { fail(e.getMessage()); } assertEquals(uri, o.toString()); }
public void testConstructor4() { String uri = "file:///data/file.xml"; Origin o = null; try { o = new Origin(uri); } catch (OriginException e) { fail(e.getMessage()); } assertEquals(uri, o.toString()); }
public void testConstructor6() { String uri = "https://LOCALHOST:8080/my-app/upload.php"; Origin o = null; try { o = new Origin(uri); } catch (OriginException e) { fail(e.getMessage()); } assertEquals("https://localhost:8080", o.toString()); }