1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 *9 * http://www.apache.org/licenses/LICENSE-2.010 *11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */1718package org.apache.any23.cli;
1920import org.apache.any23.plugin.Any23PluginManager;
21import org.junit.After;
22import org.junit.Before;
23import org.junit.Test;
2425import java.io.IOException;
26import java.util.Iterator;
2728importstatic org.junit.Assert.assertTrue;
2930publicclassAny23PluginManagerToolsTest {
3132private Any23PluginManager manager;
3334 @Before
35publicvoid before() {
36 manager = Any23PluginManager.getInstance();
37 }
3839 @After
40publicvoid after() {
41 manager = null;
42 }
4344 @Test
45publicvoid testGetTools() throws IOException {
46 Iterator<Tool> tools = manager.getTools();
47 assertTrue(tools.hasNext()); // NOTE: Punctual tool detection verification done by ToolRunnerTest.java48 }
49 }