+/*\r
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
package org.argeo.slc.core.test.tree;\r
\r
import java.io.Serializable;\r
import java.util.ArrayList;\r
import java.util.Date;\r
import java.util.List;\r
-import java.util.Map;\r
import java.util.SortedMap;\r
import java.util.TreeMap;\r
import java.util.UUID;\r
private List<SimpleAttachment> attachments = new ArrayList<SimpleAttachment>();\r
\r
// Headers. Used to accelerate request on a specific test result.\r
- private Map<String, String> attributes = new TreeMap<String, String>();\r
+ private SortedMap<String, String> attributes = new TreeMap<String, String>();\r
\r
// Runtime Data\r
private TreeSPath currentPath;\r
- private TestRun currentTestRun;\r
+ private transient TestRun currentTestRun;\r
private Boolean warnIfAlreadyClosed = true;\r
private Boolean strictChecks = false;\r
// TODO is it really necessary closeDate == null ?\r
private Boolean isClosed = false;\r
\r
- private List<TestResultListener<TreeTestResult>> listeners = new Vector<TestResultListener<TreeTestResult>>();\r
+ private transient List<TestResultListener<TreeTestResult>> listeners = new Vector<TestResultListener<TreeTestResult>>();\r
\r
/** Sets the list of listeners. */\r
public void setListeners(List<TestResultListener<TreeTestResult>> listeners) {\r
}\r
\r
/**\r
- * Used by ORM systems. \r
- * Changed to public in order to enable jcr persistence\r
+ * Used by ORM systems. Changed to public in order to enable jcr persistence\r
*/\r
public void setResultParts(SortedMap<TreeSPath, PartSubList> resultParts) {\r
this.resultParts = resultParts;\r
return super.hashCode();\r
}\r
\r
- public Map<String, String> getAttributes() {\r
+ public SortedMap<String, String> getAttributes() {\r
return attributes;\r
}\r
\r
- public void setAttributes(Map<String, String> attributes) {\r
+ public void setAttributes(SortedMap<String, String> attributes) {\r
this.attributes = attributes;\r
}\r
\r