Search in sources :

Example 1 with TranslatorLibrarian

use of org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian in project openflowplugin by opendaylight.

the class MultipartReplyTranslatorUtilTest method setUp.

@Before
public void setUp() throws Exception {
    when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
    translatorLibrarian = new TranslatorLibrarian() {

        private TranslatorLibrary translatorLibrary;

        @Override
        public TranslatorLibrary oook() {
            return translatorLibrary;
        }

        @Override
        public void setTranslatorLibrary(final TranslatorLibrary translatorLibrary) {
            this.translatorLibrary = translatorLibrary;
        }
    };
    TranslatorLibraryUtil.injectBasicTranslatorLibrary(translatorLibrarian, convertorExecutor);
}
Also used : TranslatorLibrary(org.opendaylight.openflowplugin.api.openflow.device.TranslatorLibrary) TranslatorLibrarian(org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TranslatorLibrary (org.opendaylight.openflowplugin.api.openflow.device.TranslatorLibrary)1 TranslatorLibrarian (org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian)1