Commit | Line | Data |
---|---|---|
3dde9149 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2016 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | *******************************************************************************/ | |
9 | ||
664a3a81 | 10 | package org.eclipse.tracecompass.segmentstore.core.tests; |
3dde9149 | 11 | |
3dde9149 | 12 | import org.eclipse.jdt.annotation.NonNull; |
664a3a81 | 13 | import org.eclipse.tracecompass.internal.segmentstore.core.arraylist.ArrayListStore; |
3dde9149 MK |
14 | import org.eclipse.tracecompass.segmentstore.core.ISegment; |
15 | import org.eclipse.tracecompass.segmentstore.core.ISegmentStore; | |
3dde9149 MK |
16 | |
17 | /** | |
18 | * Unit tests for intersecting elements in an ArrayListStore | |
19 | * | |
3dde9149 MK |
20 | * @author France Lapointe Nguyen |
21 | * @author Matthew Khouzam | |
22 | */ | |
aaa6f547 | 23 | public class ArrayListStoreTest extends AbstractTestSegmentStore { |
3dde9149 | 24 | |
aaa6f547 MK |
25 | @Override |
26 | protected ISegmentStore<@NonNull ISegment> getSegmentStore() { | |
27 | return new ArrayListStore<>(); | |
3dde9149 | 28 | } |
131f8938 MK |
29 | |
30 | @Override | |
31 | protected ISegmentStore<@NonNull ISegment> getSegmentStore(@NonNull ISegment @NonNull [] data) { | |
32 | return new ArrayListStore<>(data); | |
33 | } | |
3dde9149 | 34 | } |