Fixed test
This commit is contained in:
parent
c9b2a3b6f7
commit
41260b972d
|
@ -14,19 +14,19 @@ public class FakeModerationThread extends ModerationThread {
|
|||
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
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");
|
||||
|
||||
|
||||
// ContextTest.setContextByName(DEV_VRE);
|
||||
// ckanPackage = new CKANPackage();
|
||||
// ckanPackage.setName(ITEM_NAME_VALUE);
|
||||
// ckanPackage.purge();
|
||||
ContextTest.setContextByName(DEV_VRE);
|
||||
ckanPackage = new CKANPackage();
|
||||
ckanPackage.setName(ITEM_NAME_VALUE);
|
||||
ckanPackage.purge();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue