ctf: Disable NLS warnings in test plugin
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / types / SequenceDeclarationTest.java
index f6cb96ffa3bfe440af9f5b02ad557822ee2f49b4..26923b67a3b0160b33b3106a01993deb08e4f866 100644 (file)
@@ -1,3 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Ericsson
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     Matthew Khouzam - Initial API and implementation
+ *******************************************************************************/
+
 package org.eclipse.linuxtools.ctf.core.tests.types;
 
 import static org.junit.Assert.assertEquals;
@@ -24,11 +35,12 @@ import org.junit.Test;
  * @author ematkho
  * @version $Revision: 1.0 $
  */
+@SuppressWarnings("javadoc")
 public class SequenceDeclarationTest {
 
     private SequenceDeclaration fixture;
 
-    static final String fieldName = "LengthName"; //$NON-NLS-1$
+    static final String fieldName = "LengthName";
     /**
      * Launch the test.
      *
@@ -54,13 +66,12 @@ public class SequenceDeclarationTest {
      */
     @Test
     public void testSequenceDeclaration() {
-        String lengthName = ""; //$NON-NLS-1$
+        String lengthName = "";
         IDeclaration elemType = new StringDeclaration();
 
-        SequenceDeclaration result = new SequenceDeclaration(lengthName,
-                elemType);
+        SequenceDeclaration result = new SequenceDeclaration(lengthName, elemType);
         assertNotNull(result);
-        String string = "[declaration] sequence["; //$NON-NLS-1$
+        String string = "[declaration] sequence[";
         assertEquals(string, result.toString().substring(0, string.length()));
     }
 
@@ -75,11 +86,10 @@ public class SequenceDeclarationTest {
 
         StructDeclaration structDec = new StructDeclaration(0);
         structDec.addField(fieldName, id);
-        StructDefinition structDef = new StructDefinition(structDec, null, "x"); //$NON-NLS-1$
+        StructDefinition structDef = new StructDefinition(structDec, null, "x");
         long seqLen = 10;
         structDef.lookupInteger(fieldName).setValue(seqLen);
-        SequenceDefinition result = this.fixture.createDefinition(structDef,
-                fieldName);
+        SequenceDefinition result = this.fixture.createDefinition(structDef, fieldName);
         assertNotNull(result);
     }
 
@@ -98,7 +108,7 @@ public class SequenceDeclarationTest {
     @Test
     public void testToString() {
         String result = fixture.toString();
-        String left = "[declaration] sequence["; //$NON-NLS-1$
+        String left = "[declaration] sequence[";
         assertEquals(left, result.substring(0, left.length()));
     }
 }
This page took 0.02469 seconds and 5 git commands to generate.