diff options
Diffstat (limited to 'app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java')
-rw-r--r-- | app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java b/app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java index 43db830c..39e154fd 100644 --- a/app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java +++ b/app/src/androidTest/java/net/lacolaco/smileessence/twitter/TwitterUtilsTest.java @@ -26,6 +26,7 @@ package net.lacolaco.smileessence.twitter; import android.test.InstrumentationTestCase; +import com.twitter.Validator; import junit.framework.Assert; import net.lacolaco.smileessence.twitter.util.TwitterUtils; @@ -37,9 +38,9 @@ public class TwitterUtilsTest extends InstrumentationTestCase { public void testLength() throws Exception { String text = "test"; - Assert.assertEquals(text.length(), TwitterUtils.getFixedTextLength(text)); + Assert.assertEquals(text.length(), new Validator().getTweetLength(text)); text = "test.com"; - assertNotSame(text.length(), TwitterUtils.getFixedTextLength(text)); + assertNotSame(text.length(), new Validator().getTweetLength(text)); } public void testURL() throws Exception { |