1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
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
.statesystem
.core
.tests
.statevalue
;
12 import static org
.junit
.Assert
.assertEquals
;
14 import org
.eclipse
.tracecompass
.statesystem
.core
.statevalue
.ITmfStateValue
;
15 import org
.eclipse
.tracecompass
.statesystem
.core
.statevalue
.ITmfStateValue
.Type
;
16 import org
.eclipse
.tracecompass
.statesystem
.core
.statevalue
.TmfStateValue
;
17 import org
.junit
.Test
;
20 * Test the string state value class
22 * @author Geneviève Bastien
24 public class StringStateValueTest
extends StateValueTestBase
{
26 private static final String UNBOXED_VALUE
= "MyString";
27 private static final TmfStateValue STATE_VALUE
= TmfStateValue
.newValueString(UNBOXED_VALUE
);
30 protected ITmfStateValue
getStateValueFixture() {
35 protected Type
getStateValueType() {
36 return ITmfStateValue
.Type
.STRING
;
41 public void testUnboxStr() {
42 String unboxed
= STATE_VALUE
.unboxStr();
43 assertEquals(UNBOXED_VALUE
, unboxed
);