samples/deadlock/test/org/apidesign/deadlock/logs/ParallelTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 10:04:53 +0200
changeset 210 acf2c31e22d4
parent 209 1c999569643b
child 263 7e8e995065c5
permissions -rw-r--r--
Merge: Geertjan's changes to the end of the chapter
jtulach@108
     1
package org.apidesign.deadlock.logs;
jtulach@108
     2
jtulach@108
     3
import java.util.logging.Level;
jtulach@108
     4
import org.junit.After;
jtulach@108
     5
import org.junit.AfterClass;
jtulach@108
     6
import org.junit.Before;
jtulach@108
     7
import org.junit.BeforeClass;
jtulach@108
     8
import org.junit.Test;
jtulach@108
     9
import org.netbeans.junit.NbTestCase;
jtulach@108
    10
import static org.junit.Assert.*;
jtulach@108
    11
jtulach@108
    12
// BEGIN: test.parallel.test
jtulach@108
    13
public class ParallelTest extends NbTestCase {
jtulach@108
    14
    public ParallelTest(String testName) {
jtulach@108
    15
        super(testName);
jtulach@108
    16
    }
jtulach@108
    17
jtulach@108
    18
    @Override
jtulach@108
    19
    protected Level logLevel() {
jtulach@108
    20
        return Level.WARNING;
jtulach@108
    21
    }
jtulach@108
    22
jtulach@108
    23
    public void testMain() throws Exception {
jtulach@210
    24
        Parallel.main(null);
jtulach@108
    25
        fail("Ok, just print logged messages");
jtulach@108
    26
    }
jtulach@108
    27
}
jtulach@108
    28
// END: test.parallel.test