package org.scribe.model; import static org.junit.Assert.*; import org.junit.Test; public class TestVerifier { @Test public void testValidConstructor() { String value = "Hallo"; Verifier ver = new Verifier(value); assertTrue(ver.getValue().equals(value)); } @Test public void testEmptyConstructor() { String value = null; try { new Verifier(value); fail("Must not allow instances with empty string in constructor call."); } catch (IllegalArgumentException e) { // this is expected behavior } } }