uk.ac.cam.juliet.twitter.testing
Class BayesUtilTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by uk.ac.cam.juliet.twitter.testing.BayesUtilTest
All Implemented Interfaces:
junit.framework.Test

public class BayesUtilTest
extends junit.framework.TestCase

unit tests for the BayesUtil class

Author:
Ahmad Akra

Field Summary
private  BayesUtil util
          the instance of BayesUtil that will be testing
 
Constructor Summary
BayesUtilTest()
           
 
Method Summary
 void testDetectAllCaps()
          tests BayesUtil.
 void testExtractWords()
          tests BayesUtil.
 void testRemoveStopwords()
          tests BayesUtil.
 void testReplaceEmoticons()
          tests BayesUtil.
 void testReplaceLaughs()
          tests BayesUtil.
 void testReplaceRepeatedLetters()
          tests BayesUtil.
 void testReplaceURLs()
          tests BayesUtil.
 void testReplaceUsernames()
          tests BayesUtil.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

util

private BayesUtil util
the instance of BayesUtil that will be testing

Constructor Detail

BayesUtilTest

public BayesUtilTest()
Method Detail

testReplaceURLs

public void testReplaceURLs()
tests BayesUtil. replaceURLs(String)


testReplaceRepeatedLetters

public void testReplaceRepeatedLetters()
tests BayesUtil. replaceRepeatedLetters(String)


testReplaceEmoticons

public void testReplaceEmoticons()
tests BayesUtil. replaceEmoticons(String)


testRemoveStopwords

public void testRemoveStopwords()
tests BayesUtil. removeStopWords(String)


testReplaceLaughs

public void testReplaceLaughs()
tests BayesUtil. replaceLaughs(String)


testReplaceUsernames

public void testReplaceUsernames()
tests BayesUtil. replaceUsernames(String)


testDetectAllCaps

public void testDetectAllCaps()
tests BayesUtil. detectAllCaps(String)


testExtractWords

public void testExtractWords()
tests BayesUtil. extractWords(String)