| 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 | |
| 10 | package org.eclipse.tracecompass.segmentstore.core.tests; |
| 11 | |
| 12 | import org.eclipse.jdt.annotation.NonNull; |
| 13 | import org.eclipse.tracecompass.internal.segmentstore.core.arraylist.LazyArrayListStore; |
| 14 | import org.eclipse.tracecompass.segmentstore.core.ISegment; |
| 15 | import org.eclipse.tracecompass.segmentstore.core.ISegmentStore; |
| 16 | |
| 17 | /** |
| 18 | * Unit tests for intersecting elements in an LazyArrayListStore |
| 19 | * |
| 20 | * @author Matthew Khouzam |
| 21 | */ |
| 22 | public class LazyArrayListStoreTest extends AbstractTestSegmentStore { |
| 23 | |
| 24 | @Override |
| 25 | protected ISegmentStore<@NonNull ISegment> getSegmentStore() { |
| 26 | return new LazyArrayListStore<>(); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | protected ISegmentStore<@NonNull ISegment> getSegmentStore(@NonNull ISegment @NonNull [] data) { |
| 31 | return new LazyArrayListStore<>(data); |
| 32 | } |
| 33 | } |