Fixed test

This commit is contained in:
Luca Frosini 2021-11-26 12:38:37 +01:00
parent c9b2a3b6f7
commit 41260b972d
2 changed files with 7 additions and 7 deletions

View File

@ -14,19 +14,19 @@ public class FakeModerationThread extends ModerationThread {
@Override @Override
protected void postMessage(CMItemStatus cmItemStatus, String message) throws Exception { protected void postMessage(CMItemStatus cmItemStatus, String message) throws Exception {
logger.debug("gCat is sending a message to the {} for item '{}' (id={}). ItemStatus={}, Message=\"{}\"", logger.info("gCat is sending a message to the {} for item '{}' (id={}). ItemStatus={}, Message=\"{}\"",
ModerationThread.class.getSimpleName(), itemName, itemID, cmItemStatus, message); ModerationThread.class.getSimpleName(), itemName, itemID, cmItemStatus, message);
} }
@Override @Override
public void postUserMessage(CMItemStatus cmItemStatus, String userMessage) throws Exception { public void postUserMessage(CMItemStatus cmItemStatus, String userMessage) throws Exception {
logger.debug("{} is sending a message to the {} for item '{}' (id={}). ItemStatus={}, Message=\"{}\"", logger.info("{} is sending a message to the {} for item '{}' (id={}). ItemStatus={}, Message=\"{}\"",
ContextUtility.getUsername(), ModerationThread.class.getSimpleName(), itemName, itemID, cmItemStatus, userMessage); ContextUtility.getUsername(), ModerationThread.class.getSimpleName(), itemName, itemID, cmItemStatus, userMessage);
} }
@Override @Override
protected void createModerationThread() throws Exception { protected void createModerationThread() throws Exception {
logger.debug("Creating {} for item '{}' (id={})", ModerationThread.class.getSimpleName(), itemName, itemID); logger.info("Creating {} for item '{}' (id={})", ModerationThread.class.getSimpleName(), itemName, itemID);
} }
} }

View File

@ -629,10 +629,10 @@ public class CKANPackageTest extends ContextTest {
ckanPackage.approve("It seems fine now"); ckanPackage.approve("It seems fine now");
// ContextTest.setContextByName(DEV_VRE); ContextTest.setContextByName(DEV_VRE);
// ckanPackage = new CKANPackage(); ckanPackage = new CKANPackage();
// ckanPackage.setName(ITEM_NAME_VALUE); ckanPackage.setName(ITEM_NAME_VALUE);
// ckanPackage.purge(); ckanPackage.purge();
} }
} }