1
/*******************************************************************************
2
* Copyright (c) 2014 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
10
* Matthew Khouzam - Initial API and implementation
11
*******************************************************************************/
13
package org.eclipse.linuxtools.ctf.core.tests.scope;
15
import static org.junit.Assert.assertEquals;
16
import static org.junit.Assert.assertNotNull;
18
import org.eclipse.linuxtools.ctf.core.event.scope.LexicalScope;
19
import org.junit.Test;
24
* @author Matthew Khouzam
26
public class LexicalScopeTest {
32
public void testRoot(){
33
LexicalScope scope = LexicalScope.ROOT;
38
* Test a more complex node
41
public void testComplexNode(){
42
LexicalScope scope = LexicalScope.STREAM_EVENT_CONTEXT;
43
assertEquals("context", scope.getName());
44
assertEquals("stream.event.context", scope.toString());