Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 1 | package org.onosproject.net.intent; |
Brian O'Connor | 520c052 | 2014-11-23 23:50:47 -0800 | [diff] [blame] | 2 | |
| 3 | import org.junit.After; |
| 4 | import org.junit.Before; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 5 | import org.onosproject.core.IdGenerator; |
Brian O'Connor | 520c052 | 2014-11-23 23:50:47 -0800 | [diff] [blame] | 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 | } |