Added test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@176764 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
42685d6cea
commit
a0ac928685
|
@ -33,6 +33,10 @@ public class MessageParserTest {
|
|||
"* properties and usage counts: \n" +
|
||||
"https://virtuoso.parthenos.d4science.org/sparql?default-graph-uri=&query=SELECT+%3Ftype+%28COUNT%28%3Ftype%29+as+%3FtypeCount%29++%0D%0A%09%09%09%09%09WHERE+%7B%5B%5D+a+%3Ftype%7D%0D%0A%09%09%09%09%09GROUP+BY+%3Ftype&format=text%2Fhtml&timeout=0&debug=on\n";
|
||||
|
||||
public static final String TEST_13 = "Dear members,\n" +
|
||||
"The item 'Webinar on Ontology Management using VOCBENCH in the context of AGINFRAPLUS Project' has been just published by Leonardo Candela .\n" +
|
||||
"You can find it here: http://data.d4science.org/ctlg/AGINFRAplus/webinar_on_ontology_management_using_vocbench_in_the_context_of_aginfraplus_project \n" +
|
||||
"#AGINFRAPLUS #VOCBENCH";
|
||||
|
||||
public static final String TEST_LUCA = "Dear members,\n" +
|
||||
"The item 'just a test with time fields' has been just published by Francesco Mangiacrapa.\n" +
|
||||
|
@ -41,7 +45,7 @@ public class MessageParserTest {
|
|||
|
||||
@Test
|
||||
public void test() {
|
||||
String message = "Prova #Pippo Pollo http://google) <a href=\"/test\">Luca</a> :) ";
|
||||
String message = "Prova #Pippo Pollo http://google) <a href=\"/test\">Luca</a> https://www.linkedin.com/feed/update/urn:li:activity:6488779074213801984 :) ";
|
||||
|
||||
MessageParser messageParser = new MessageParser(message);
|
||||
logger.debug(messageParser.getParsedMessage());
|
||||
|
@ -52,6 +56,10 @@ public class MessageParserTest {
|
|||
messageParser = new MessageParser(TEST_12);
|
||||
logger.debug(messageParser.getParsedMessage());
|
||||
|
||||
messageParser = new MessageParser(TEST_13);
|
||||
logger.debug(messageParser.getParsedMessage());
|
||||
|
||||
|
||||
messageParser = new MessageParser(TEST_LUCA);
|
||||
logger.debug(messageParser.getParsedMessage());
|
||||
|
||||
|
|
Loading…
Reference in New Issue