BAEL-2033: Added stream-ordering files (#5080)

* Added stream-ordering files

* Removed old files
This commit is contained in:
Sam Millington 2018-08-28 00:28:44 +01:00 committed by Josh Cummings
parent 64ba651582
commit 1256735a42
3 changed files with 7 additions and 40 deletions

View File

@ -1,4 +1,4 @@
package benchmarking; package com.baeldung.streamordering;
import org.junit.Test; import org.junit.Test;
import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.annotations.*;
@ -15,7 +15,7 @@ import java.util.concurrent.TimeUnit;
import java.util.stream.IntStream; import java.util.stream.IntStream;
public class TestBenchmark public class BenchmarkUnitTest
{ {
@Test @Test
@ -94,4 +94,4 @@ public class TestBenchmark
for (int i = 0; i < 1000; i++) for (int i = 0; i < 1000; i++)
bh.consume (list.get (i)); bh.consume (list.get (i));
} }
} }

View File

@ -1,3 +1,5 @@
package com.baeldung.streamordering;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@ -10,10 +12,9 @@ import java.util.stream.IntStream;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class StreamsOrderingUnitTest {
public class StreamsOrderingTest { Logger logger = Logger.getLogger( StreamsOrderingUnitTest.class.getName());
Logger logger = Logger.getLogger( StreamsOrderingTest.class.getName());
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {

View File

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>StreamsOrdering</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjdk.jmh/jmh-core -->
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.21</version>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.21</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>