commit | 2323596967f8284fc206f2fc2e6bd1b290df4c04 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Fri Feb 03 11:44:15 2017 -0800 |
committer | Thomas Vachuska <tom@onlab.us> | Fri Feb 03 11:44:15 2017 -0800 |
tree | 174e27307ff2715803790ee71e511e21aaef3f2a | |
parent | e538711b8dcb6dbe317af50c4e46836aeb04d6b3 [diff] [blame] |
Added code to intent unit tests to pre-emptively unbind ID generator to avoid cascading failures. Change-Id: I2e5aff44a90ceeaaad71d7154b79f20edab620a7
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentAccumulatorTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentAccumulatorTest.java index 71b5396..8914f17 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentAccumulatorTest.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentAccumulatorTest.java
@@ -57,6 +57,7 @@ @Before public void localSetup() { mockGenerator = new MockIdGenerator(); + Intent.unbindIdGenerator(mockGenerator); Intent.bindIdGenerator(mockGenerator); intent1 = new MockIntent(1L);