changeset 114:810907f82c45

Rename a few tests to match JUnit conventions.
author shade
date Fri, 16 Aug 2013 17:52:13 +0400
parents 474e029b1134
children 7c137a6d33e4
files jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForked1_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForked2_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForkedTest.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForkedTest2.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgs1_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgs2_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgsTest.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgsTest2.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs1_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs2_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs3_Test.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest2.java jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest3.java
diffstat 14 files changed, 615 insertions(+), 615 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForked1_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,80 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ * Tests if harness had indeed executed different tests in different JVMs.
+ *
+ * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+public class AnnotatedForked1_Test {
+
+    private static volatile boolean test1executed;
+    private static volatile boolean test2executed;
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    public void test1() {
+        Fixtures.work();
+        test1executed = true;
+        Assert.assertFalse(test2executed);
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(2)
+    public void test2() {
+        Fixtures.work();
+        test2executed = true;
+        Assert.assertFalse(test1executed);
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe");
+    }
+
+    @Test
+    public void invoke5() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe -f");
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForked2_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ * Tests if harness had indeed executed different tests in different JVMs.
+ *
+ * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+public class AnnotatedForked2_Test {
+
+    private static volatile boolean test1executed;
+    private static volatile boolean test2executed;
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork()
+    public void test1() {
+        Fixtures.work();
+        test1executed = true;
+        Assert.assertFalse(test2executed);
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(value = 2, warmups = 1)
+    public void test2() {
+        Fixtures.work();
+        test2executed = true;
+        Assert.assertFalse(test1executed);
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe");
+    }
+
+}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForkedTest.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- * Tests if harness had indeed executed different tests in different JVMs.
- *
- * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-public class AnnotatedForkedTest {
-
-    private static volatile boolean test1executed;
-    private static volatile boolean test2executed;
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    public void test1() {
-        Fixtures.work();
-        test1executed = true;
-        Assert.assertFalse(test2executed);
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(2)
-    public void test2() {
-        Fixtures.work();
-        test2executed = true;
-        Assert.assertFalse(test1executed);
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe");
-    }
-
-    @Test
-    public void invoke5() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe -f");
-    }
-
-}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/AnnotatedForkedTest2.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- * Tests if harness had indeed executed different tests in different JVMs.
- *
- * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-public class AnnotatedForkedTest2 {
-
-    private static volatile boolean test1executed;
-    private static volatile boolean test2executed;
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork()
-    public void test1() {
-        Fixtures.work();
-        test1executed = true;
-        Assert.assertFalse(test2executed);
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(value = 2, warmups = 1)
-    public void test2() {
-        Fixtures.work();
-        test2executed = true;
-        Assert.assertFalse(test1executed);
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + "  -foe");
-    }
-
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgs1_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ *
+ * @author Aleksey Shipilev (aleksey.shipilev@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+public class ForkedJvmAppendPrependArgs1_Test {
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dreplaced", jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
+    public void test1() {
+        Fixtures.work();
+        Assert.assertNotNull(System.getProperty("replaced"));
+        Assert.assertNull(System.getProperty("appended"));
+        Assert.assertNull(System.getProperty("prepended"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
+    public void test2() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNotNull(System.getProperty("appended"));
+        Assert.assertNotNull(System.getProperty("prepended"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsPrepend = "-Dprepended")
+    public void test3() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNull(System.getProperty("appended"));
+        Assert.assertNotNull(System.getProperty("prepended"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsAppend = "-Dappended")
+    public void test4() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNotNull(System.getProperty("appended"));
+        Assert.assertNull(System.getProperty("prepended"));
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgs2_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,121 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ *
+ * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+@Fork(jvmArgsAppend = "-DappendedUp", jvmArgsPrepend = "-DprependedUp")
+public class ForkedJvmAppendPrependArgs2_Test {
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dreplaced", jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
+    public void test1() {
+        Fixtures.work();
+        Assert.assertNotNull(System.getProperty("replaced"));
+        Assert.assertNull(System.getProperty("appended"));
+        Assert.assertNull(System.getProperty("prepended"));
+        Assert.assertNull(System.getProperty("appendedUp"));
+        Assert.assertNull(System.getProperty("prependedUp"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
+    public void test2() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNotNull(System.getProperty("appended"));
+        Assert.assertNotNull(System.getProperty("prepended"));
+        Assert.assertNull(System.getProperty("appendedUp"));
+        Assert.assertNull(System.getProperty("prependedUp"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsPrepend = "-Dprepended")
+    public void test3() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNull(System.getProperty("appended"));
+        Assert.assertNotNull(System.getProperty("prepended"));
+        Assert.assertNotNull(System.getProperty("appendedUp"));
+        Assert.assertNull(System.getProperty("prependedUp"));
+
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgsAppend = "-Dappended")
+    public void test4() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNotNull(System.getProperty("appended"));
+        Assert.assertNull(System.getProperty("prepended"));
+        Assert.assertNull(System.getProperty("appendedUp"));
+        Assert.assertNotNull(System.getProperty("prependedUp"));
+
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork()
+    public void test5() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("replaced"));
+        Assert.assertNull(System.getProperty("appended"));
+        Assert.assertNull(System.getProperty("prepended"));
+        Assert.assertNotNull(System.getProperty("appendedUp"));
+        Assert.assertNotNull(System.getProperty("prependedUp"));
+
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
+    }
+
+}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgsTest.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- *
- * @author Aleksey Shipilev (aleksey.shipilev@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-public class ForkedJvmAppendPrependArgsTest {
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dreplaced", jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
-    public void test1() {
-        Fixtures.work();
-        Assert.assertNotNull(System.getProperty("replaced"));
-        Assert.assertNull(System.getProperty("appended"));
-        Assert.assertNull(System.getProperty("prepended"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
-    public void test2() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNotNull(System.getProperty("appended"));
-        Assert.assertNotNull(System.getProperty("prepended"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsPrepend = "-Dprepended")
-    public void test3() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNull(System.getProperty("appended"));
-        Assert.assertNotNull(System.getProperty("prepended"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsAppend = "-Dappended")
-    public void test4() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNotNull(System.getProperty("appended"));
-        Assert.assertNull(System.getProperty("prepended"));
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
-    }
-
-}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmAppendPrependArgsTest2.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,121 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- *
- * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-@Fork(jvmArgsAppend = "-DappendedUp", jvmArgsPrepend = "-DprependedUp")
-public class ForkedJvmAppendPrependArgsTest2 {
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dreplaced", jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
-    public void test1() {
-        Fixtures.work();
-        Assert.assertNotNull(System.getProperty("replaced"));
-        Assert.assertNull(System.getProperty("appended"));
-        Assert.assertNull(System.getProperty("prepended"));
-        Assert.assertNull(System.getProperty("appendedUp"));
-        Assert.assertNull(System.getProperty("prependedUp"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsAppend = "-Dappended", jvmArgsPrepend = "-Dprepended")
-    public void test2() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNotNull(System.getProperty("appended"));
-        Assert.assertNotNull(System.getProperty("prepended"));
-        Assert.assertNull(System.getProperty("appendedUp"));
-        Assert.assertNull(System.getProperty("prependedUp"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsPrepend = "-Dprepended")
-    public void test3() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNull(System.getProperty("appended"));
-        Assert.assertNotNull(System.getProperty("prepended"));
-        Assert.assertNotNull(System.getProperty("appendedUp"));
-        Assert.assertNull(System.getProperty("prependedUp"));
-
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgsAppend = "-Dappended")
-    public void test4() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNotNull(System.getProperty("appended"));
-        Assert.assertNull(System.getProperty("prepended"));
-        Assert.assertNull(System.getProperty("appendedUp"));
-        Assert.assertNotNull(System.getProperty("prependedUp"));
-
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork()
-    public void test5() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("replaced"));
-        Assert.assertNull(System.getProperty("appended"));
-        Assert.assertNull(System.getProperty("prepended"));
-        Assert.assertNotNull(System.getProperty("appendedUp"));
-        Assert.assertNotNull(System.getProperty("prependedUp"));
-
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
-    }
-
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs1_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ *
+ * @author Aleksey Shipilev (aleksey.shipilev@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+public class ForkedJvmArgs1_Test {
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest1")
+    public void test1() {
+        Fixtures.work();
+        Assert.assertNotNull(System.getProperty("test1"));
+        Assert.assertNull(System.getProperty("test2"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest2")
+    public void test2() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("test1"));
+        Assert.assertNotNull(System.getProperty("test2"));
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs2_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ *
+ * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+@Fork(jvmArgs = "-DtestUpper")
+public class ForkedJvmArgs2_Test {
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest1")
+    public void test1() {
+        Fixtures.work();
+        Assert.assertNotNull(System.getProperty("test1"));
+        Assert.assertNull(System.getProperty("test2"));
+        Assert.assertNull(System.getProperty("testUpper"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest2")
+    public void test2() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("test1"));
+        Assert.assertNotNull(System.getProperty("test2"));
+        Assert.assertNull(System.getProperty("testUpper"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork
+    public void testUpper() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("test1"));
+        Assert.assertNull(System.getProperty("test2"));
+        Assert.assertNotNull(System.getProperty("testUpper"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    public void testNone() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("test1"));
+        Assert.assertNull(System.getProperty("test2"));
+        Assert.assertNotNull(System.getProperty("testUpper"));
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgs3_Test.java	Fri Aug 16 17:52:13 2013 +0400
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jmh.it.fork;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.openjdk.jmh.Main;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Warmup;
+import org.openjdk.jmh.it.Fixtures;
+
+import java.util.concurrent.TimeUnit;
+
+/**
+ * tests multiply spaces in jvmArgs annotations.
+ * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
+ */
+@BenchmarkMode(Mode.All)
+public class ForkedJvmArgs3_Test {
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest1  -Dtest3")
+    public void test1() {
+        Fixtures.work();
+        Assert.assertNotNull(System.getProperty("test1"));
+        Assert.assertNull(System.getProperty("test2"));
+        Assert.assertNotNull(System.getProperty("test3"));
+    }
+
+    @GenerateMicroBenchmark
+    @Warmup(iterations = 0)
+    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
+    @Fork(jvmArgs = "-Dtest2  -Dtest3")
+    public void test2() {
+        Fixtures.work();
+        Assert.assertNull(System.getProperty("test1"));
+        Assert.assertNotNull(System.getProperty("test2"));
+        Assert.assertNotNull(System.getProperty("test3"));
+    }
+
+    @Test
+    public void invoke() {
+        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
+    }
+
+}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- *
- * @author Aleksey Shipilev (aleksey.shipilev@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-public class ForkedJvmArgsTest {
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest1")
-    public void test1() {
-        Fixtures.work();
-        Assert.assertNotNull(System.getProperty("test1"));
-        Assert.assertNull(System.getProperty("test2"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest2")
-    public void test2() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("test1"));
-        Assert.assertNotNull(System.getProperty("test2"));
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
-    }
-
-}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest2.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- *
- * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-@Fork(jvmArgs = "-DtestUpper")
-public class ForkedJvmArgsTest2 {
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest1")
-    public void test1() {
-        Fixtures.work();
-        Assert.assertNotNull(System.getProperty("test1"));
-        Assert.assertNull(System.getProperty("test2"));
-        Assert.assertNull(System.getProperty("testUpper"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest2")
-    public void test2() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("test1"));
-        Assert.assertNotNull(System.getProperty("test2"));
-        Assert.assertNull(System.getProperty("testUpper"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork
-    public void testUpper() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("test1"));
-        Assert.assertNull(System.getProperty("test2"));
-        Assert.assertNotNull(System.getProperty("testUpper"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    public void testNone() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("test1"));
-        Assert.assertNull(System.getProperty("test2"));
-        Assert.assertNotNull(System.getProperty("testUpper"));
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
-    }
-
-}
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/fork/ForkedJvmArgsTest3.java	Fri Aug 16 17:46:33 2013 +0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jmh.it.fork;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.openjdk.jmh.Main;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.it.Fixtures;
-
-import java.util.concurrent.TimeUnit;
-
-/**
- * tests multiply spaces in jvmArgs annotations.
- * @author Sergey Kuksenko (sergey.kuksenko@oracle.com)
- */
-@BenchmarkMode(Mode.All)
-public class ForkedJvmArgsTest3 {
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest1  -Dtest3")
-    public void test1() {
-        Fixtures.work();
-        Assert.assertNotNull(System.getProperty("test1"));
-        Assert.assertNull(System.getProperty("test2"));
-        Assert.assertNotNull(System.getProperty("test3"));
-    }
-
-    @GenerateMicroBenchmark
-    @Warmup(iterations = 0)
-    @Measurement(iterations = 1, time = 100, timeUnit = TimeUnit.MILLISECONDS)
-    @Fork(jvmArgs = "-Dtest2  -Dtest3")
-    public void test2() {
-        Fixtures.work();
-        Assert.assertNull(System.getProperty("test1"));
-        Assert.assertNotNull(System.getProperty("test2"));
-        Assert.assertNotNull(System.getProperty("test3"));
-    }
-
-    @Test
-    public void invoke() {
-        Main.testMain(Fixtures.getTestMask(this.getClass()) + " -foe");
-    }
-
-}