Package io.mola.galimatias
Class BadURLTest
- java.lang.Object
-
- io.mola.galimatias.BadURLTest
-
public class BadURLTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionthrown
-
Constructor Summary
Constructors Constructor Description BadURLTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparseEmptyURL()voidparseNullURL()voidparseOneToken()voidparseURLWithBadBase()voidparseURLWithErrors()voidparseURLWithErrorsStrict()voidparseURLWithMalformedScheme()voidparseURLwithoutScheme()voidstrictCarriageInUser()voidstrictNewlineInUser()voidstrictTabsInUser()voidstrictTabsNewlines()voidstrictUnencodedPercentage()voidwithSchemeInvalidCharacter(TestURL testURL)voidwithSchemeStartingNotAlpha(TestURL testURL)
-
-
-
Method Detail
-
parseNullURL
public void parseNullURL() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseEmptyURL
public void parseEmptyURL() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseURLwithoutScheme
public void parseURLwithoutScheme() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseOneToken
public void parseOneToken() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseURLWithBadBase
public void parseURLWithBadBase() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseURLWithMalformedScheme
public void parseURLWithMalformedScheme() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseURLWithErrors
public void parseURLWithErrors() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
parseURLWithErrorsStrict
public void parseURLWithErrorsStrict() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
withSchemeInvalidCharacter
public void withSchemeInvalidCharacter(TestURL testURL) throws GalimatiasParseException
- Throws:
GalimatiasParseException
-
withSchemeStartingNotAlpha
public void withSchemeStartingNotAlpha(TestURL testURL) throws GalimatiasParseException
- Throws:
GalimatiasParseException
-
strictTabsInUser
public void strictTabsInUser() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
strictCarriageInUser
public void strictCarriageInUser() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
strictNewlineInUser
public void strictNewlineInUser() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
strictTabsNewlines
public void strictTabsNewlines() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
strictUnencodedPercentage
public void strictUnencodedPercentage() throws GalimatiasParseException- Throws:
GalimatiasParseException
-
-