X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2Ftree%2FCompositeTreeTestDefinition.java;h=4be0c798e17ccf39326fca9ab9e50c3948d019cd;hb=f37ddb692cf23fcfa43c18f3ff6b0615941db22e;hp=1f5e89342ed5f8dd7c028b38375e65847ad8a87c;hpb=ee6c3543a0ff9403420ce6a9c647723269f14331;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/CompositeTreeTestDefinition.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/CompositeTreeTestDefinition.java index 1f5e89342..4be0c798e 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/CompositeTreeTestDefinition.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/CompositeTreeTestDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 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.core.test.tree; import java.util.List; @@ -28,6 +44,7 @@ public class CompositeTreeTestDefinition implements TestDefinition, private TreeSPath path; private StructureRegistry registry; + @SuppressWarnings({ "unchecked", "rawtypes" }) public void execute(TestRun testRun) { if (log.isTraceEnabled()) log.trace("Execute sequence of test definitions..."); @@ -36,8 +53,8 @@ public class CompositeTreeTestDefinition implements TestDefinition, for (TestDefinition task : tasks) { TestResult result = testRun.getTestResult(); if (result instanceof StructureAware) { - ((StructureAware) result).notifyCurrentPath(registry, taskPaths - .get(i)); + ((StructureAware) result).notifyCurrentPath(registry, + taskPaths.get(i)); } task.execute(testRun); @@ -58,6 +75,7 @@ public class CompositeTreeTestDefinition implements TestDefinition, } } + @SuppressWarnings("unchecked") public void notifyCurrentPath(StructureRegistry registry, TreeSPath path) { this.path = path;