X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fjcr%2Fexecution%2FJcrResultListener.java;h=ce5dbf76ce6ad9202611e6dca3d34455ae6d88be;hb=5fe677bf811739592b1089471181e39f9cbe4f3f;hp=79e6b12a005448493b634509a57f8b91ac15ce5a;hpb=99acd32f30678d05eaacc6c5db41d6134d9ce6f9;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/execution/JcrResultListener.java b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/execution/JcrResultListener.java index 79e6b12a0..ce5dbf76c 100644 --- a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/execution/JcrResultListener.java +++ b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/execution/JcrResultListener.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2007-2012 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.argeo.slc.jcr.execution; import java.util.Collections; @@ -153,8 +168,8 @@ public class JcrResultListener implements TreeTestResultListener, SlcNames { protected Node createResultNode(TreeTestResult testResult) throws RepositoryException { String uuid = testResult.getUuid(); - String path = SlcJcrUtils.createResultPath(uuid); - Node resultNode = JcrUtils.mkdirs(session, path, SlcTypes.SLC_RESULT); + String path = SlcJcrUtils.createResultPath(session, uuid); + Node resultNode = JcrUtils.mkdirs(session, path, SlcTypes.SLC_TEST_RESULT); resultNode.setProperty(SLC_UUID, uuid); for (Map.Entry entry : testResult.getAttributes() .entrySet()) {