-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d43473d
commit e9fbe7a
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/test/java/com/trivago/rta/rendering/pages/pojos/CustomParameterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.trivago.rta.rendering.pages.pojos; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.hamcrest.core.Is.is; | ||
import static org.junit.Assert.assertThat; | ||
|
||
|
||
public class CustomParameterTest { | ||
|
||
@Test | ||
public void isValidUrlTest() { | ||
CustomParameter customParameter = new CustomParameter("test", "http://www.someurl.de"); | ||
assertThat(customParameter.isUrl(), is(true)); | ||
} | ||
|
||
@Test | ||
public void isInvalidUrlTest() { | ||
CustomParameter customParameter = new CustomParameter("test", "test"); | ||
assertThat(customParameter.isUrl(), is(false)); | ||
} | ||
|
||
@Test | ||
public void getKeyValueTest() { | ||
CustomParameter customParameter = new CustomParameter("key", "value"); | ||
assertThat(customParameter.getKey(), is("key")); | ||
assertThat(customParameter.getValue(), is("value")); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/test/java/com/trivago/rta/rendering/pages/pojos/StartPageCollectionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.trivago.rta.rendering.pages.pojos; | ||
|
||
public class StartPageCollectionTest { | ||
} |