From a0ac92868569e011eda01b4a544adc82357d7129 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 23 Jan 2019 16:19:24 +0000 Subject: [PATCH] Added test git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@176764 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../socialutillibrary/MessageParserTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/gcube/social_networking/socialutillibrary/MessageParserTest.java b/src/test/java/org/gcube/social_networking/socialutillibrary/MessageParserTest.java index 08a6bc9..c898c89 100644 --- a/src/test/java/org/gcube/social_networking/socialutillibrary/MessageParserTest.java +++ b/src/test/java/org/gcube/social_networking/socialutillibrary/MessageParserTest.java @@ -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) Luca :) "; + String message = "Prova #Pippo Pollo http://google) Luca 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());