Brian O'Connor | 520c052 | 2014-11-23 23:50:47 -0800 | [diff] [blame] | 1 | package org.onlab.onos.net.intent; |
2 | |||||
3 | import org.junit.After; | ||||
4 | import org.junit.Before; | ||||
5 | import org.onlab.onos.core.IdGenerator; | ||||
6 | |||||
7 | public abstract class AbstractIntentTest { | ||||
8 | |||||
9 | protected IdGenerator idGenerator = new MockIdGenerator(); | ||||
10 | |||||
11 | @Before | ||||
12 | public void setUp() throws Exception { | ||||
13 | Intent.bindIdGenerator(idGenerator); | ||||
14 | } | ||||
15 | |||||
16 | @After | ||||
17 | public void tearDown() { | ||||
18 | Intent.unbindIdGenerator(idGenerator); | ||||
19 | } | ||||
20 | } |