~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFCallsiteTest.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2013 Ericsson
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *     Matthew Khouzam - Initial API and implementation
 
10
 *******************************************************************************/
 
11
 
1
12
package org.eclipse.linuxtools.ctf.core.tests.event;
2
13
 
3
14
import static org.junit.Assert.assertEquals;
6
17
import java.util.Arrays;
7
18
 
8
19
import org.eclipse.linuxtools.ctf.core.event.CTFCallsite;
9
 
import org.junit.After;
10
 
import org.junit.Before;
11
20
import org.junit.Test;
12
21
 
13
22
/**
19
28
 */
20
29
 
21
30
public class CTFCallsiteTest {
22
 
    /**
23
 
     * Perform pre-test initialization.
24
 
     */
25
 
    @Before
26
 
    public void setUp() {
27
 
        // add additional set up code here
28
 
    }
29
 
 
30
 
    /**
31
 
     * Perform post-test clean-up.
32
 
     */
33
 
    @After
34
 
    public void tearDown() {
35
 
        // Add additional tear down code here
36
 
    }
37
 
 
38
 
    @SuppressWarnings("nls")
 
31
 
39
32
    private static CTFCallsite GenerateCS(long ip){
40
33
        return new CTFCallsite("event name", "func name", ip, "file.java", 1);
41
34
    }
81
74
    @Test
82
75
    public void toStringTest(){
83
76
        CTFCallsite cs = GenerateCS(0x01);
84
 
        assertEquals("file.java/func name:1", cs.toString()); //$NON-NLS-1$
85
 
    }
86
 
 
87
 
    /**
88
 
     * Launch the test.
89
 
     *
90
 
     * @param args
91
 
     *            the command line arguments
92
 
     */
93
 
    public static void main(String[] args) {
94
 
        new org.junit.runner.JUnitCore().run(CTFCallsiteTest.class);
 
77
        assertEquals("file.java/func name:1", cs.toString());
95
78
    }
96
79
}