Skip to content
Snippets Groups Projects
Commit 22f4e69e authored by jakubs's avatar jakubs
Browse files

minor: fix the feature rich data set import system test

SVN: 26220
parent 658eabfd
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ def sendMail(context, subject, message):
def post_metadata_registration(context):
content = "post_metadata_registration rich %s " % context.getPersistentMap().get("email_text")
sendMail(context, "Subject", "post_metadata_registration rich")
sendMail(context, "Subject", content)
def create_space_if_needed(transaction):
space = transaction.getSpace(SPACE_CODE)
......@@ -63,4 +63,4 @@ def process(transaction):
# register samples
createSamples(transaction)
transaction.getRegistrationContext.getPersistentMap().put("email_text", "rich_email_text")
transaction.getRegistrationContext().getPersistentMap().put("email_text", "rich_email_text")
......@@ -48,7 +48,7 @@ public class FeatureRichDataSetImportSystemTest extends SystemTestCase
return new File(rootDir, "incoming-rich-test");
}
@Test(groups = "broken")
@Test
public void testRichImport() throws Exception
{
......@@ -79,7 +79,8 @@ public class FeatureRichDataSetImportSystemTest extends SystemTestCase
String content = FileUtilities.loadExactToString(f);
if (content.contains("post_metadata_registration rich"))
{
assertTrue(content.contains("rich_email_text")); // check the content introduced
assertTrue(content, content.contains("rich_email_text")); // check the content
// introduced
// with the persistent map
return; // assert ok
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment