patterntesting.runtime.junit
Class StringTester

Package class diagram package StringTester
java.lang.Object
  extended by patterntesting.runtime.junit.StringTester

public final class StringTester
extends Object

This tester provides some special assert methods for strings to simplify JUnit testing.

Since:
1.2.10-YEARS (24.01.2012)
Author:
oboehm

Method Summary
static void assertEmpty(String s)
          Check if the given string is null or empty.
static void assertNotEmpty(String s)
          Check if the given string is not null and not empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertNotEmpty

public static void assertNotEmpty(String s)
Check if the given string is not null and not empty.

Parameters:
s - the string

assertEmpty

public static void assertEmpty(String s)
Check if the given string is null or empty. This method was introduced for symmetric reason to assertNotEmpty(String).

Parameters:
s - the s


Copyright © 2002–2014 PatternTesting Team. All rights reserved.