31ad675d6a0a708c5a69a7ae3b0dcb21bc24e5c5
[controller.git] / third-party / openflowj_netty / src / test / java / org / openflow / protocol / action / OFVendorActionRegistryTest.java
1 package org.openflow.protocol.action;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6 import org.openflow.protocol.factory.OFVendorActionRegistry;
7
8 public class OFVendorActionRegistryTest {
9
10     @Test
11     public void test() {
12         MockVendorActionFactory factory = new MockVendorActionFactory();
13         OFVendorActionRegistry.getInstance().register(MockVendorAction.VENDOR_ID, factory);
14         assertEquals(factory, OFVendorActionRegistry.getInstance().get(MockVendorAction.VENDOR_ID));
15     }
16
17 }