-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Claudio Fahey <[email protected]>
- Loading branch information
Claudio Fahey
committed
Jun 1, 2020
1 parent
2b3a033
commit 0e57327
Showing
4 changed files
with
401 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
pravega-client-examples/src/test/java/io/pravega/example/StreamProcessingTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.pravega.example; | ||
|
||
import io.pravega.utils.SetupUtils; | ||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.io.IOException; | ||
import java.util.concurrent.atomic.AtomicReference; | ||
|
||
public class StreamProcessingTest { | ||
static final Logger log = LoggerFactory.getLogger(StreamProcessingTest.class); | ||
|
||
protected static final AtomicReference<SetupUtils> SETUP_UTILS = new AtomicReference<>(); | ||
|
||
@BeforeClass | ||
public static void setup() throws Exception { | ||
SETUP_UTILS.set(new SetupUtils()); | ||
if( SETUP_UTILS.get() == null) throw new RuntimeException("This is null"); | ||
SETUP_UTILS.get().startAllServices(); | ||
} | ||
|
||
@AfterClass | ||
public static void tearDown() throws Exception { | ||
SETUP_UTILS.get().stopAllServices(); | ||
} | ||
|
||
@Test | ||
public void basicWriterTest() throws IOException { | ||
String methodName = (new Object() {}).getClass().getEnclosingMethod().getName(); | ||
log.info("Test case: {}", methodName); | ||
} | ||
} |
Oops, something went wrong.