Committed by
Gerrit Code Review
Move SnmpDeviceProviderTest, etc. to appropriate path.
Change-Id: I450618b2e20671c2755140640963e58d1e4c48d6
Showing
3 changed files
with
7 additions
and
4 deletions
... | @@ -10,7 +10,12 @@ COMPILE_DEPS = [ | ... | @@ -10,7 +10,12 @@ COMPILE_DEPS = [ |
10 | '//protocols/snmp/ctl:onos-protocols-snmp-ctl', | 10 | '//protocols/snmp/ctl:onos-protocols-snmp-ctl', |
11 | ] | 11 | ] |
12 | 12 | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | + '//core/api:onos-api-tests', | ||
16 | +] | ||
13 | osgi_jar_with_tests ( | 17 | osgi_jar_with_tests ( |
14 | deps = COMPILE_DEPS, | 18 | deps = COMPILE_DEPS, |
19 | + test_deps = TEST_DEPS, | ||
15 | ) | 20 | ) |
16 | 21 | ... | ... |
... | @@ -19,14 +19,12 @@ package org.onosproject.provider.snmp.device.impl; | ... | @@ -19,14 +19,12 @@ package org.onosproject.provider.snmp.device.impl; |
19 | import com.btisystems.pronx.ems.core.snmp.ISnmpSession; | 19 | import com.btisystems.pronx.ems.core.snmp.ISnmpSession; |
20 | import org.onosproject.incubator.net.faultmanagement.alarm.DefaultAlarm; | 20 | import org.onosproject.incubator.net.faultmanagement.alarm.DefaultAlarm; |
21 | import org.onosproject.net.DeviceId; | 21 | import org.onosproject.net.DeviceId; |
22 | -import org.onosproject.snmp.*; | 22 | +import org.onosproject.snmp.SnmpController; |
23 | import org.onosproject.snmp.SnmpDevice; | 23 | import org.onosproject.snmp.SnmpDevice; |
24 | 24 | ||
25 | import java.io.IOException; | 25 | import java.io.IOException; |
26 | -import java.util.ArrayList; | ||
27 | import java.util.Collection; | 26 | import java.util.Collection; |
28 | import java.util.HashMap; | 27 | import java.util.HashMap; |
29 | -import java.util.List; | ||
30 | 28 | ||
31 | /** | 29 | /** |
32 | * Test Adapter for SnmpController API. | 30 | * Test Adapter for SnmpController API. |
... | @@ -51,7 +49,7 @@ public class SnmpControllerAdapter implements SnmpController { | ... | @@ -51,7 +49,7 @@ public class SnmpControllerAdapter implements SnmpController { |
51 | 49 | ||
52 | @Override | 50 | @Override |
53 | public void addDevice(DeviceId deviceId, SnmpDevice snmpDevice) { | 51 | public void addDevice(DeviceId deviceId, SnmpDevice snmpDevice) { |
54 | - devices.put(deviceId,snmpDevice); | 52 | + devices.put(deviceId, snmpDevice); |
55 | } | 53 | } |
56 | 54 | ||
57 | @Override | 55 | @Override | ... | ... |
-
Please register or login to post a comment