bug 208609 - getLocalRandomIdentifier
diff --git a/update/org.eclipse.update.tests.core/META-INF/MANIFEST.MF b/update/org.eclipse.update.tests.core/META-INF/MANIFEST.MF
index a7b8c76..a59d765 100644
--- a/update/org.eclipse.update.tests.core/META-INF/MANIFEST.MF
+++ b/update/org.eclipse.update.tests.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: %name
Bundle-SymbolicName: org.eclipse.update.tests.core; singleton:=true
-Bundle-Version: 3.2.0
+Bundle-Version: 3.2.1
Bundle-ClassPath: updatetests.jar
Bundle-Activator: org.eclipse.update.tests.UpdateTestsPlugin
Bundle-Vendor: %provider-name
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
index a451177..eafa5c3 100644
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
+++ b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
@@ -12,9 +12,11 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+
import org.eclipse.update.tests.api.AllAPITests;
import org.eclipse.update.tests.branding.*;
//import org.eclipse.update.tests.configurations.AllConfigurationsTests;
+import org.eclipse.update.tests.core.TestErrorRecoveryLog;
import org.eclipse.update.tests.core.boot.AllPlatformConfigurationTests;
import org.eclipse.update.tests.mirror.*;
import org.eclipse.update.tests.model.AllModelTests;
@@ -36,6 +38,7 @@
public static Test suite() throws Exception {
TestSuite suite = new TestSuite();
suite.setName("All Update Manager Tests");
+ suite.addTest(new TestSuite(TestErrorRecoveryLog.class));
suite.addTest(AllMirrorTests.suite());
suite.addTest(AllSiteValidationTests.suite());
suite.addTest(AllPlatformConfigurationTests.suite());
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/TestErrorRecoveryLog.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/TestErrorRecoveryLog.java
new file mode 100644
index 0000000..563d0f1
--- /dev/null
+++ b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/TestErrorRecoveryLog.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2007 The Eclipse Foundation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * The Eclipse Foundation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.update.tests.core;
+
+import java.io.File;
+
+import org.eclipse.update.internal.core.ErrorRecoveryLog;
+import org.eclipse.update.tests.UpdateManagerTestCase;
+
+public class TestErrorRecoveryLog extends UpdateManagerTestCase {
+
+ public TestErrorRecoveryLog(String name) {
+ super(name);
+ // TODO Auto-generated constructor stub
+ }
+
+ public void testGetLocalRandomIdentifier() throws Exception {
+ for (int i = 0; i < 10; i++) {
+ String fname = ErrorRecoveryLog.getLocalRandomIdentifier(System.getProperty("java.io.tmpdir") + "/feature.xml");
+ File f = new File(fname);
+ assertTrue(f.createNewFile());
+ }
+ }
+}