Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.incubator.net.virtual.impl; |
| 18 | |
| 19 | import com.google.common.collect.Iterators; |
| 20 | import org.junit.After; |
| 21 | import org.junit.Before; |
| 22 | import org.junit.Test; |
| 23 | import org.onlab.junit.TestUtils; |
yoonseon | c6a6927 | 2017-01-12 18:22:20 -0800 | [diff] [blame^] | 24 | import org.onlab.osgi.TestServiceDirectory; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 25 | import org.onosproject.common.event.impl.TestEventDispatcher; |
| 26 | import org.onosproject.core.CoreService; |
| 27 | import org.onosproject.core.CoreServiceAdapter; |
| 28 | import org.onosproject.core.IdGenerator; |
| 29 | import org.onosproject.incubator.net.virtual.TenantId; |
| 30 | import org.onosproject.incubator.net.virtual.VirtualDevice; |
| 31 | import org.onosproject.incubator.net.virtual.VirtualLink; |
| 32 | import org.onosproject.incubator.net.virtual.VirtualNetwork; |
| 33 | import org.onosproject.incubator.store.virtual.impl.DistributedVirtualNetworkStore; |
| 34 | import org.onosproject.net.ConnectPoint; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 35 | import org.onosproject.net.Link; |
| 36 | import org.onosproject.net.NetTestTools; |
| 37 | import org.onosproject.net.PortNumber; |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 38 | import org.onosproject.net.TestDeviceParams; |
Brian Stanke | 11f6d53 | 2016-07-05 16:17:59 -0400 | [diff] [blame] | 39 | import org.onosproject.net.intent.FakeIntentManager; |
| 40 | import org.onosproject.net.intent.TestableIntentService; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 41 | import org.onosproject.net.link.LinkService; |
| 42 | import org.onosproject.store.service.TestStorageService; |
| 43 | |
| 44 | import java.util.Iterator; |
| 45 | import java.util.concurrent.atomic.AtomicLong; |
| 46 | |
| 47 | import static org.junit.Assert.assertEquals; |
| 48 | import static org.junit.Assert.assertNotEquals; |
| 49 | |
| 50 | /** |
| 51 | * Junit tests for VirtualNetworkLinkService. |
| 52 | */ |
yoonseon | 214963b | 2016-11-21 15:41:07 -0800 | [diff] [blame] | 53 | public class VirtualNetworkLinkManagerTest extends TestDeviceParams { |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 54 | |
| 55 | private final String tenantIdValue1 = "TENANT_ID1"; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 56 | |
| 57 | private VirtualNetworkManager manager; |
| 58 | private DistributedVirtualNetworkStore virtualNetworkManagerStore; |
| 59 | private CoreService coreService; |
Brian Stanke | 11f6d53 | 2016-07-05 16:17:59 -0400 | [diff] [blame] | 60 | private TestableIntentService intentService = new FakeIntentManager(); |
yoonseon | c6a6927 | 2017-01-12 18:22:20 -0800 | [diff] [blame^] | 61 | private TestServiceDirectory testDirectory; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 62 | |
| 63 | @Before |
| 64 | public void setUp() throws Exception { |
| 65 | virtualNetworkManagerStore = new DistributedVirtualNetworkStore(); |
| 66 | |
yoonseon | 214963b | 2016-11-21 15:41:07 -0800 | [diff] [blame] | 67 | coreService = new VirtualNetworkLinkManagerTest.TestCoreService(); |
yoonseon | c6a6927 | 2017-01-12 18:22:20 -0800 | [diff] [blame^] | 68 | TestUtils.setField(virtualNetworkManagerStore, "coreService", coreService); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 69 | TestUtils.setField(virtualNetworkManagerStore, "storageService", new TestStorageService()); |
| 70 | virtualNetworkManagerStore.activate(); |
| 71 | |
| 72 | manager = new VirtualNetworkManager(); |
| 73 | manager.store = virtualNetworkManagerStore; |
Brian Stanke | 11f6d53 | 2016-07-05 16:17:59 -0400 | [diff] [blame] | 74 | manager.intentService = intentService; |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 75 | NetTestTools.injectEventDispatcher(manager, new TestEventDispatcher()); |
yoonseon | c6a6927 | 2017-01-12 18:22:20 -0800 | [diff] [blame^] | 76 | |
| 77 | testDirectory = new TestServiceDirectory(); |
| 78 | TestUtils.setField(manager, "serviceDirectory", testDirectory); |
| 79 | |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 80 | manager.activate(); |
| 81 | } |
| 82 | |
| 83 | @After |
| 84 | public void tearDown() { |
| 85 | virtualNetworkManagerStore.deactivate(); |
| 86 | manager.deactivate(); |
| 87 | NetTestTools.injectEventDispatcher(manager, null); |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Tests the getLinks(), getActiveLinks(), getLinkCount(), getLink(), |
| 92 | * getLinks(ConnectPoint), getDeviceLinks(), getDeviceEgressLinks(), getDeviceIngressLinks(), |
| 93 | * getEgressLinks(), getIngressLinks() methods. |
| 94 | */ |
| 95 | @Test |
| 96 | public void testGetLinks() { |
| 97 | |
| 98 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 99 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 100 | VirtualDevice srcVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 101 | manager.createVirtualDevice(virtualNetwork.id(), DID1); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 102 | VirtualDevice dstVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 103 | manager.createVirtualDevice(virtualNetwork.id(), DID2); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 104 | ConnectPoint src = new ConnectPoint(srcVirtualDevice.id(), PortNumber.portNumber(1)); |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 105 | manager.createVirtualPort(virtualNetwork.id(), src.deviceId(), src.port(), |
Yoonseon Han | 6c60389 | 2016-09-01 11:52:21 -0700 | [diff] [blame] | 106 | new ConnectPoint(srcVirtualDevice.id(), src.port())); |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 107 | |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 108 | ConnectPoint dst = new ConnectPoint(dstVirtualDevice.id(), PortNumber.portNumber(2)); |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 109 | manager.createVirtualPort(virtualNetwork.id(), dst.deviceId(), dst.port(), |
Yoonseon Han | 6c60389 | 2016-09-01 11:52:21 -0700 | [diff] [blame] | 110 | new ConnectPoint(dstVirtualDevice.id(), dst.port())); |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 111 | |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 112 | VirtualLink link1 = manager.createVirtualLink(virtualNetwork.id(), src, dst); |
| 113 | VirtualLink link2 = manager.createVirtualLink(virtualNetwork.id(), dst, src); |
| 114 | |
| 115 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 116 | |
| 117 | // test the getLinks() method |
| 118 | Iterator<Link> it = linkService.getLinks().iterator(); |
| 119 | assertEquals("The link set size did not match.", 2, Iterators.size(it)); |
| 120 | |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 121 | // test the getActiveLinks() method where all links are INACTIVE |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 122 | Iterator<Link> it2 = linkService.getActiveLinks().iterator(); |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 123 | assertEquals("The link set size did not match.", 0, Iterators.size(it2)); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 124 | |
| 125 | // test the getActiveLinks() method where one link is ACTIVE |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 126 | virtualNetworkManagerStore.updateLink(link1, link1.tunnelId(), Link.State.ACTIVE); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 127 | Iterator<Link> it3 = linkService.getActiveLinks().iterator(); |
| 128 | assertEquals("The link set size did not match.", 1, Iterators.size(it3)); |
| 129 | |
| 130 | // test the getLinkCount() method |
| 131 | assertEquals("The link set size did not match.", 2, linkService.getLinkCount()); |
| 132 | |
| 133 | // test the getLink() method |
| 134 | assertEquals("The expect link did not match.", link1, |
| 135 | linkService.getLink(src, dst)); |
| 136 | assertEquals("The expect link did not match.", link2, |
| 137 | linkService.getLink(dst, src)); |
| 138 | assertNotEquals("The expect link should not have matched.", link1, |
| 139 | linkService.getLink(dst, src)); |
| 140 | |
| 141 | // test the getLinks(ConnectPoint) method |
| 142 | assertEquals("The link set size did not match.", 2, linkService.getLinks(src).size()); |
| 143 | assertEquals("The link set size did not match.", 2, linkService.getLinks(dst).size()); |
| 144 | ConnectPoint connectPoint = new ConnectPoint(dstVirtualDevice.id(), PortNumber.portNumber(3)); |
| 145 | assertEquals("The link set size did not match.", 0, linkService.getLinks(connectPoint).size()); |
| 146 | |
| 147 | // test the getDeviceLinks() method |
| 148 | assertEquals("The link set size did not match.", 2, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 149 | linkService.getDeviceLinks(DID1).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 150 | assertEquals("The link set size did not match.", 2, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 151 | linkService.getDeviceLinks(DID2).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 152 | assertEquals("The link set size did not match.", 0, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 153 | linkService.getDeviceLinks(DID3).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 154 | |
| 155 | // test the getDeviceEgressLinks() method |
| 156 | assertEquals("The link set size did not match.", 1, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 157 | linkService.getDeviceEgressLinks(DID1).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 158 | assertEquals("The link set size did not match.", 1, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 159 | linkService.getDeviceEgressLinks(DID2).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 160 | assertEquals("The link set size did not match.", 0, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 161 | linkService.getDeviceEgressLinks(DID3).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 162 | |
| 163 | // test the getDeviceIngressLinks() method |
| 164 | assertEquals("The link set size did not match.", 1, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 165 | linkService.getDeviceIngressLinks(DID1).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 166 | assertEquals("The link set size did not match.", 1, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 167 | linkService.getDeviceIngressLinks(DID2).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 168 | assertEquals("The link set size did not match.", 0, |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 169 | linkService.getDeviceIngressLinks(DID3).size()); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 170 | |
| 171 | // test the getEgressLinks() method |
| 172 | assertEquals("The link set size did not match.", 1, |
| 173 | linkService.getEgressLinks(src).size()); |
| 174 | assertEquals("The link set size did not match.", 1, |
| 175 | linkService.getEgressLinks(dst).size()); |
| 176 | assertEquals("The link set size did not match.", 0, |
| 177 | linkService.getEgressLinks(connectPoint).size()); |
| 178 | |
| 179 | // test the getIngressLinks() method |
| 180 | assertEquals("The link set size did not match.", 1, |
| 181 | linkService.getIngressLinks(src).size()); |
| 182 | assertEquals("The link set size did not match.", 1, |
| 183 | linkService.getIngressLinks(dst).size()); |
| 184 | assertEquals("The link set size did not match.", 0, |
| 185 | linkService.getIngressLinks(connectPoint).size()); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Tests the getLink() method using a null src connect point. |
| 190 | */ |
| 191 | @Test(expected = NullPointerException.class) |
| 192 | public void testGetLinkByNullSrc() { |
| 193 | |
| 194 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 195 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 196 | VirtualDevice srcVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 197 | manager.createVirtualDevice(virtualNetwork.id(), DID1); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 198 | VirtualDevice dstVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 199 | manager.createVirtualDevice(virtualNetwork.id(), DID2); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 200 | ConnectPoint src = new ConnectPoint(srcVirtualDevice.id(), PortNumber.portNumber(1)); |
| 201 | ConnectPoint dst = new ConnectPoint(dstVirtualDevice.id(), PortNumber.portNumber(2)); |
| 202 | manager.createVirtualLink(virtualNetwork.id(), src, dst); |
| 203 | manager.createVirtualLink(virtualNetwork.id(), dst, src); |
| 204 | |
| 205 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 206 | |
| 207 | // test the getLink() method with a null src connect point. |
| 208 | linkService.getLink(null, dst); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Tests the getLink() method using a null dst connect point. |
| 213 | */ |
| 214 | @Test(expected = NullPointerException.class) |
| 215 | public void testGetLinkByNullDst() { |
| 216 | |
| 217 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 218 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 219 | VirtualDevice srcVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 220 | manager.createVirtualDevice(virtualNetwork.id(), DID1); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 221 | VirtualDevice dstVirtualDevice = |
Brian Stanke | 8e9f8d1 | 2016-06-08 14:48:33 -0400 | [diff] [blame] | 222 | manager.createVirtualDevice(virtualNetwork.id(), DID2); |
Brian Stanke | 8691428 | 2016-05-25 15:36:50 -0400 | [diff] [blame] | 223 | ConnectPoint src = new ConnectPoint(srcVirtualDevice.id(), PortNumber.portNumber(1)); |
| 224 | ConnectPoint dst = new ConnectPoint(dstVirtualDevice.id(), PortNumber.portNumber(2)); |
| 225 | manager.createVirtualLink(virtualNetwork.id(), src, dst); |
| 226 | manager.createVirtualLink(virtualNetwork.id(), dst, src); |
| 227 | |
| 228 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 229 | |
| 230 | // test the getLink() method with a null dst connect point. |
| 231 | linkService.getLink(src, null); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Tests querying for links using a null device identifier. |
| 236 | */ |
| 237 | @Test(expected = NullPointerException.class) |
| 238 | public void testGetDeviceLinksByNullId() { |
| 239 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 240 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 241 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 242 | |
| 243 | // test the getDeviceLinks() method with a null device identifier. |
| 244 | linkService.getDeviceLinks(null); |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Tests querying for links using a null connect point. |
| 249 | */ |
| 250 | @Test(expected = NullPointerException.class) |
| 251 | public void testGetLinksByNullId() { |
| 252 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 253 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 254 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 255 | |
| 256 | // test the getLinks() method with a null connect point. |
| 257 | linkService.getLinks(null); |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Tests querying for device egress links using a null device identifier. |
| 262 | */ |
| 263 | @Test(expected = NullPointerException.class) |
| 264 | public void testGetDeviceEgressLinksByNullId() { |
| 265 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 266 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 267 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 268 | |
| 269 | // test the getDeviceEgressLinks() method with a null device identifier. |
| 270 | linkService.getDeviceEgressLinks(null); |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Tests querying for device ingress links using a null device identifier. |
| 275 | */ |
| 276 | @Test(expected = NullPointerException.class) |
| 277 | public void testGetDeviceIngressLinksByNullId() { |
| 278 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 279 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 280 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 281 | |
| 282 | // test the getDeviceIngressLinks() method with a null device identifier. |
| 283 | linkService.getDeviceIngressLinks(null); |
| 284 | } |
| 285 | |
| 286 | /** |
| 287 | * Tests querying for egress links using a null connect point. |
| 288 | */ |
| 289 | @Test(expected = NullPointerException.class) |
| 290 | public void testGetEgressLinksByNullId() { |
| 291 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 292 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 293 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 294 | |
| 295 | // test the getEgressLinks() method with a null connect point. |
| 296 | linkService.getEgressLinks(null); |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Tests querying for ingress links using a null connect point. |
| 301 | */ |
| 302 | @Test(expected = NullPointerException.class) |
| 303 | public void testGetIngressLinksByNullId() { |
| 304 | manager.registerTenantId(TenantId.tenantId(tenantIdValue1)); |
| 305 | VirtualNetwork virtualNetwork = manager.createVirtualNetwork(TenantId.tenantId(tenantIdValue1)); |
| 306 | LinkService linkService = manager.get(virtualNetwork.id(), LinkService.class); |
| 307 | |
| 308 | // test the getIngressLinks() method with a null connect point. |
| 309 | linkService.getIngressLinks(null); |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Core service test class. |
| 314 | */ |
| 315 | private class TestCoreService extends CoreServiceAdapter { |
| 316 | |
| 317 | @Override |
| 318 | public IdGenerator getIdGenerator(String topic) { |
| 319 | return new IdGenerator() { |
| 320 | private AtomicLong counter = new AtomicLong(0); |
| 321 | |
| 322 | @Override |
| 323 | public long getNewId() { |
| 324 | return counter.getAndIncrement(); |
| 325 | } |
| 326 | }; |
| 327 | } |
| 328 | } |
| 329 | } |