blob: 2e592af11d76dbb243a803c9fbf6dae149e1f80a [file] [log] [blame]
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.isis.controller.impl.lsdb;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.BlockingQueue;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
/**
* Unit test case for IsisLspQueueConsumer.
*/
public class IsisLspQueueConsumerTest {
private IsisLspQueueConsumer isisLspQueueConsumer;
private BlockingQueue blockingQueue;
@Before
public void setUp() throws Exception {
isisLspQueueConsumer = new IsisLspQueueConsumer(blockingQueue);
}
@After
public void tearDown() throws Exception {
isisLspQueueConsumer = null;
}
/**
* Tests run() method.
*/
@Test
public void testRun() throws Exception {
isisLspQueueConsumer.run();
assertThat(isisLspQueueConsumer, is(notNullValue()));
}
}