[New] added StrolchQuery.getSelection() and cleaned up some constants
This commit is contained in:
parent
ef15d4af1f
commit
66276b5ced
|
@ -62,7 +62,7 @@ public class UpdateResourceCollectionCommand extends Command {
|
|||
}
|
||||
|
||||
ResourceMap resourceMap = tx().getResourceMap();
|
||||
for (Resource resource : resources) {
|
||||
for (Resource resource : this.resources) {
|
||||
if (!resourceMap.hasElement(tx(), resource.getType(), resource.getId())) {
|
||||
String msg = "The Resource {0} can not be updated as it does not exist!";
|
||||
msg = MessageFormat.format(msg, resource.getLocator());
|
||||
|
|
|
@ -20,7 +20,7 @@ import static org.junit.Assert.assertEquals;
|
|||
import java.io.File;
|
||||
import java.io.FilenameFilter;
|
||||
|
||||
import li.strolch.model.Tags;
|
||||
import li.strolch.runtime.StrolchConstants;
|
||||
import li.strolch.service.XmlExportModelArgument;
|
||||
import li.strolch.service.XmlExportModelService;
|
||||
import li.strolch.service.XmlImportModelArgument;
|
||||
|
@ -92,7 +92,7 @@ public class XmlExportServiceTest {
|
|||
XmlExportModelArgument arg = new XmlExportModelArgument();
|
||||
arg.modelFileName = "TestExportOnlyResTemplates.xml";
|
||||
arg.doOrders = false;
|
||||
arg.resourceTypes.add(Tags.TEMPLATE);
|
||||
arg.resourceTypes.add(StrolchConstants.TEMPLATE);
|
||||
arg.multiFile = true;
|
||||
ServiceResult result = runtimeMock.getServiceHandler().doService(null, service, arg);
|
||||
RuntimeMock.assertServiceResult(ServiceResultState.SUCCESS, ServiceResult.class, result);
|
||||
|
|
Loading…
Reference in New Issue