aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/gnunet/testing/TestingFixture.java
blob: 43035129fff5afe01210575dbc6810a16507b1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.gnunet.testing;

import org.gnunet.util.Scheduler;
import org.junit.After;
import org.junit.Before;

/**
 * Default JUnit4 fixture methods for gnunet-java tests.
 * Resets the scheduler properly.
 */
public class TestingFixture {
    @Before
    public void beginGNJTest() {
        Scheduler.forceReset();
    }

    @After
    public void endGNJTest() {
        Scheduler.forceReset();
    }
}