Fixed test
This commit is contained in:
parent
c9b2a3b6f7
commit
41260b972d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue