2016-09-08 14:45:08 +02:00
|
|
|
package org.gcube.social_networking.socialutillibrary;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2016-09-08 22:33:34 +02:00
|
|
|
|
2016-09-08 14:45:08 +02:00
|
|
|
public class TestUnit {
|
|
|
|
|
|
|
|
|
|
|
|
//@Test
|
|
|
|
public void testHashtag() {
|
2016-10-04 17:05:18 +02:00
|
|
|
String text = "This is a test with hashtag #T6 and #T6.1 but also #T6. that has '.' that is useless and #T43.43 and #gcube4.1.0gcore #gcube4.1.0";
|
2016-09-08 14:45:08 +02:00
|
|
|
List<String> hashtags = Utils.getHashTags(text);
|
|
|
|
System.out.println("Hashtags are " + hashtags);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|