Skip to content

Commit

Permalink
Custom param tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffdev committed Nov 24, 2017
1 parent d43473d commit e9fbe7a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.trivago.rta.rendering.pages.pojos;

public class StartPageCollectionTest {
}

0 comments on commit e9fbe7a

Please sign in to comment.