9f7466a288d486c30ace022ebf317050b457ea9d
1 /*******************************************************************************
2 * Copyright (c) 2016 Ericsson
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.segmentstore
.core
.tests
;
12 import static org
.junit
.Assert
.assertEquals
;
13 import static org
.junit
.Assert
.assertFalse
;
15 import org
.eclipse
.jdt
.annotation
.NonNull
;
16 import org
.eclipse
.tracecompass
.segmentstore
.core
.treemap
.TreeMapStore
;
17 import org
.eclipse
.tracecompass
.segmentstore
.core
.BasicSegment
;
18 import org
.eclipse
.tracecompass
.segmentstore
.core
.ISegment
;
19 import org
.eclipse
.tracecompass
.segmentstore
.core
.ISegmentStore
;
20 import org
.junit
.Test
;
23 * Unit tests for intersecting elements in a TreeMapStore
25 * @author France Lapointe Nguyen
26 * @deprecated the test is deprecated as the store is deprecated
29 public class OldTreeMapStoreTest
extends AbstractTestSegmentStore
{
32 protected ISegmentStore
<@NonNull ISegment
> getSegmentStore() {
33 return new TreeMapStore
<>();
37 * Try adding duplicate elements, they should be ignored
40 public void testNoDuplicateElements() {
41 for (ISegment segment
: SEGMENTS
) {
42 boolean ret
= fSegmentStore
.add(new BasicSegment(segment
.getStart(), segment
.getEnd()));
45 assertEquals(SEGMENTS
.size(), fSegmentStore
.size());
This page took 0.033401 seconds and 5 git commands to generate.