<junit.version>4.12</junit.version>
<snakeyaml.version>1.14</snakeyaml.version>
<guava.version>21.0</guava.version>
+ <jetty.version>9.4.18.v20190429</jetty.version>
<!--<sonar.skipDesign>true</sonar.skipDesign>-->
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<scope>test</scope>
- <version>9.2.10.v20150310</version>
+ <version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
- <version>9.2.10.v20150310</version>
+ <version>${jetty.version}</version>
<scope>test</scope>
</dependency>
* sdc-distribution-client
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Modifications copyright (C) 2019 Nokia. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
-import org.eclipse.jetty.util.ArrayQueue;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
public class NotificationConsumerTest {
private CambriaConsumer cambriaConsumer = mock(CambriaConsumer.class);
private INotificationCallback clientCallback = spy(INotificationCallback.class);
- private Queue<Iterable<String>> notificationsQueue = new ArrayQueue<>(100);
+ private Queue<Iterable<String>> notificationsQueue = new LinkedList<>();
private DistributionClientImpl distributionClient = Mockito.spy(DistributionClientImpl.class);
private List<String> artifactsTypes = Arrays.asList(ArtifactTypeEnum.HEAT.name());
private List<Boolean> notificationStatusResults = new ArrayList<>();