package com.kickstarter.libs.utils;

import junit.framework.TestCase;

public class StringUtilsTest extends TestCase {

  public void testIsEmail() {
    assertTrue(StringUtils.isEmail("hello@kickstarter.com"));
  }

  public void testIsEmpty() {
    assertTrue(StringUtils.isEmpty(""));
    assertTrue(StringUtils.isEmpty(" "));
    assertTrue(StringUtils.isEmpty("     "));
    assertTrue(StringUtils.isEmpty(null));
    assertFalse(StringUtils.isEmpty("a"));
    assertFalse(StringUtils.isEmpty(" a "));
  }

  public void testIsPresent() {
    assertFalse(StringUtils.isPresent(""));
    assertFalse(StringUtils.isPresent(" "));
    assertFalse(StringUtils.isPresent("     "));
    assertFalse(StringUtils.isPresent(null));
    assertTrue(StringUtils.isPresent("a"));
    assertTrue(StringUtils.isPresent(" a "));
  }
}

@@ -41,32 +41,69 @@
 ort 
-junit.framework.TestCase
+com.kickstarter.KSRobolectricTestCase;%0A%0Aimport org.junit.Test
 ;%0A%0Ap
@@ -138,16 +138,29 @@
 extends 
+KSRobolectric
 TestCase
@@ -163,16 +163,24 @@
 Case %7B%0A%0A
+  @Test%0A
   public
@@ -261,26 +261,93 @@
 r.com%22));%0A  
-%7D%0A
+  assertFalse(StringUtils.isEmail(%22hello@kickstarter%22));%0A  %7D%0A%0A  @Test
 %0A  public vo
@@ -630,16 +630,24 @@
 );%0A  %7D%0A%0A
+  @Test%0A
   public

Make into roboelectric test so pattern is available.