aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Montplaisir2012-03-14 15:36:40 (EDT)
committerFrancois Chouinard2012-03-19 17:43:48 (EDT)
commit44b4b425f21cd19c0a3480c393511ae8a3aca821 (patch)
tree3eda84d0682bf7dd303910fc53fcddecea5c01ea
parent5d5902a323109ca9ef4510593f762b82d133613d (diff)
downloadorg.eclipse.linuxtools-44b4b425f21cd19c0a3480c393511ae8a3aca821.zip
org.eclipse.linuxtools-44b4b425f21cd19c0a3480c393511ae8a3aca821.tar.gz
org.eclipse.linuxtools-44b4b425f21cd19c0a3480c393511ae8a3aca821.tar.bz2
Update the CTF tests to the previous change
-rw-r--r--lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFEventFieldTest.java7
-rw-r--r--lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/SequenceDefinitionTest.java6
2 files changed, 9 insertions, 4 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFEventFieldTest.java b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFEventFieldTest.java
index e4f4f58..1ff1281 100644
--- a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFEventFieldTest.java
+++ b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/event/CTFEventFieldTest.java
@@ -19,6 +19,7 @@ import org.eclipse.linuxtools.ctf.core.event.types.StringDeclaration;
import org.eclipse.linuxtools.ctf.core.event.types.StringDefinition;
import org.eclipse.linuxtools.ctf.core.event.types.StructDeclaration;
import org.eclipse.linuxtools.ctf.core.event.types.StructDefinition;
+import org.eclipse.linuxtools.ctf.core.trace.CTFReaderException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -64,9 +65,10 @@ public class CTFEventFieldTest {
/**
* Run the CTFEventField parseField(Definition,String) method test.
+ * @throws CTFReaderException
*/
@Test
- public void testParseField_complex() {
+ public void testParseField_complex() throws CTFReaderException {
int len = 32;
IntegerDeclaration id = new IntegerDeclaration(len, false, len,
ByteOrder.LITTLE_ENDIAN, Encoding.ASCII);
@@ -91,9 +93,10 @@ public class CTFEventFieldTest {
/**
* Run the CTFEventField parseField(Definition,String) method test.
+ * @throws CTFReaderException
*/
@Test
- public void testParseField_simple() {
+ public void testParseField_simple() throws CTFReaderException {
Definition fieldDef = new SequenceDefinition(new SequenceDeclaration(
"", new StringDeclaration()), null, fieldName); //$NON-NLS-1$
diff --git a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/SequenceDefinitionTest.java b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/SequenceDefinitionTest.java
index ff06a54..7859422 100644
--- a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/SequenceDefinitionTest.java
+++ b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/SequenceDefinitionTest.java
@@ -14,6 +14,7 @@ import org.eclipse.linuxtools.ctf.core.event.types.SequenceDeclaration;
import org.eclipse.linuxtools.ctf.core.event.types.SequenceDefinition;
import org.eclipse.linuxtools.ctf.core.event.types.StructDeclaration;
import org.eclipse.linuxtools.ctf.core.event.types.StructDefinition;
+import org.eclipse.linuxtools.ctf.core.trace.CTFReaderException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -42,9 +43,10 @@ public class SequenceDefinitionTest {
/**
* Perform pre-test initialization.
+ * @throws CTFReaderException
*/
@Before
- public void setUp() {
+ public void setUp() throws CTFReaderException {
StructDeclaration structDec;
StructDefinition structDef;
@@ -75,7 +77,7 @@ public class SequenceDefinitionTest {
// Add additional tear down code here
}
- private static SequenceDefinition initNonString() {
+ private static SequenceDefinition initNonString() throws CTFReaderException {
StructDeclaration structDec;
StructDefinition structDef;