]> gitweb.hamatoma.de Git - jpinet/commitdiff
javadoc corrections
authorhama <hama@siduction.net>
Thu, 28 Jul 2016 22:32:46 +0000 (00:32 +0200)
committerhama <hama@siduction.net>
Thu, 28 Jul 2016 22:32:46 +0000 (00:32 +0200)
* fix: endless loop in lvalue() and isBasicType()

28 files changed:
.gitignore
pom.xml
src/main/java/de/republib/expr/Expression.java
src/main/java/de/republib/expr/Scanner.java
src/main/java/de/republib/expr/Token.java
src/main/java/de/republib/expr/Variable.java
src/main/java/de/republib/expr/Variant.java
src/main/java/de/republib/gui/CurveSheet.java
src/main/java/de/republib/gui/MultiChannelSheet.java
src/main/java/de/republib/net/TcpClient.java
src/main/java/de/republib/pinet/Client.java
src/main/java/de/republib/pinet/GpioClient.java
src/main/java/de/republib/pinet/PinNumber.java
src/main/java/de/republib/pinet/gui/GPIOSettings.java
src/main/java/de/republib/util/BytePairData.java
src/main/java/de/republib/util/DynBytes.java
src/main/java/de/republib/util/I18N.java
src/main/java/de/republib/util/PairData.java
src/test/java/de/republib/expr/ExpressionTest.java
src/test/java/de/republib/expr/ScannerTest.java
src/test/java/de/republib/expr/VariableTest.java
src/test/java/de/republib/expr/VariantTest.java
src/test/java/de/republib/gui/GuiUtilsTest.java
src/test/java/de/republib/util/BytePairDataTest.java
src/test/java/de/republib/util/DynBytesTest.java
src/test/java/de/republib/util/FunctionPairDataTest.java
src/test/java/de/republib/util/PairDataTest.java
src/test/java/de/republib/util/StringUtilsTest.java

index ff412839f88557e8c59b03a84d27a216f12d04c3..0d3132966664fe78b799faffb135b3a65fd8cbf9 100644 (file)
@@ -1,4 +1,5 @@
 target
+src/main/doc
 test-output
 *.iml
 .project
diff --git a/pom.xml b/pom.xml
index ca1e11d9a3034e3d07de12d4c4b20eb852c76335..d11fb483ce9e72307b58040d68e459b9c4584e8a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                <logback.version>1.1.7</logback.version>
                <slf4j.version>1.7.21</slf4j.version>
-       </properties>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    </properties>
 
        <dependencies>
+               <dependency>
+                       <groupId>org.apache.maven.plugins</groupId>
+                       <artifactId>maven-javadoc-plugin</artifactId>
+                       <version>2.10.4</version>
+               </dependency>
                <!-- logging -->
                <dependency>
                        <groupId>org.slf4j</groupId>
                        </plugin>
                </plugins>
        </build>
-
+       <reporting>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-javadoc-plugin</artifactId>
+                               <version>2.10.3</version>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-project-info-reports-plugin</artifactId>
+                               <version>2.8</version>
+                       </plugin>
+               </plugins>
+       </reporting>
 </project>
index 8b256d3937bbb1e88031d87ef17cf16eb7de1dad..894cc0887cbd3076a6800313dc13ca2b7ce742a9 100644 (file)
@@ -15,10 +15,10 @@ import de.republib.util.I18N;
  *
  * <pre>
  * Syntax:
- * <expr> ::= <term> {<operator> <operand}*
- * <term> ::= '(' <expr> ')' | <constant> | <variable>
- * <constant> ::= <number>
- * <operator> ::= '+' | '-' | '*' | '/' | '%' | '**' | '='
+ * &lt;expr&gt; ::= &lt;term&gt; {&lt;operator&gt; &lt;operand}*
+ * &lt;term&gt; ::= '(' &lt;expr&gt; ')' | &lt;constant&gt; | &lt;variable&gt;
+ * &lt;constant&gt; ::= &lt;number&gt;
+ * &lt;operator&gt; ::= '+' | '-' | '*' | '/' | '%' | '**' | '='
  * </pre>
  *
  * @author hm
@@ -40,6 +40,7 @@ public class Expression {
         *            formula text
         * @return the result of the formula as long
         * @throws ExpressionException
+        *             illegal type
         */
        public static long asLong(final String text) throws ExpressionException {
                final Variant result = Expression.getInstance().expr(text);
@@ -110,11 +111,12 @@ public class Expression {
         * Calculates the value of the expression.
         *
         * <pre>
-        * <expr> ::= <term> { <operator> <term> }*
+        * &lt;expr&gt; ::= &lt;term&gt; { &lt;operator&gt; &lt;term&gt; }*
         * </pre>
         *
         * @return the value of the expression stored in a token
         * @throws ParserException
+        *             parser error found
         */
        public Variant expr() throws ParserException {
                final int entryStackLevel = this.operators.size();
@@ -174,6 +176,7 @@ public class Expression {
         *            formula text
         * @return the value of the expression
         * @throws ParserException
+        *             parser error detected
         */
        public Variant expr(String text) throws ParserException {
                final Variant rc = reset(text).expr();
@@ -248,13 +251,13 @@ public class Expression {
         * Calculates the value of the expression.
         *
         * <pre>
-        * <term> ::= '(' <expr> ')' | <constant> | <variable> | <sign> <term>
-        * <sign> ::= '+' | '-'
+        * &lt;term&gt; ::= '(' &lt;expr&gt; ')' | &lt;constant&gt; | &lt;variable&gt; | &lt;sign&gt; &lt;term&gt;
+        * &lt;sign&gt; ::= '+' | '-'
         * </pre>
         *
         * @return the value of the term
         * @throws ParserException
-        * @throws VariantException
+        *             parser error found
         */
        public Variant term() throws ParserException {
                Variant rc = null;
index 756d0ea88d59c86c382d03c65ab2d750860be2b2..fdb027f2dd1393e2f4fd1343b6c143537a7789b8 100644 (file)
@@ -208,6 +208,7 @@ public class Scanner {
         *
         * @return the next token
         * @throws ParserException
+        *             parser error found
         */
        public Token nextNotSpaceToken() throws ParserException {
                Token token;
@@ -222,6 +223,7 @@ public class Scanner {
         *
         * @return the next token
         * @throws ParserException
+        *             parser error found
         */
        public Token nextToken() throws ParserException {
                final Token token = this.lastToken = this.tokens[this.indexToken++];
index 2d5cba0eef2f52a501e100ab52062d5df9037391..fd42867e51da12b03cb52fd10c3731e69ba98e72 100644 (file)
@@ -127,11 +127,8 @@ public class Token implements Cloneable {
        }
 
        /**
-        * Sets the token as identifier.
+        * Sets the token as end of string.
         *
-        * @param id
-        *            name of the identifier
-        * @param delimiter
         * @return the instance (for chaining)
         */
        public Token setEndOfString() {
@@ -144,7 +141,6 @@ public class Token implements Cloneable {
         *
         * @param id
         *            name of the identifier
-        * @param delimiter
         * @return the instance (for chaining)
         */
        public Token setId(String id) {
@@ -214,8 +210,12 @@ public class Token implements Cloneable {
        /**
         * Sets the token as string.
         *
-        * @param spaces
-        *            the space sequence
+        * @param string
+        *            the string with replaced meta characters (like '\n')
+        * @param rawString
+        *            the string as in source code inclusive delimiters
+        * @param delimiter
+        *            the delimiter in the source code / input text
         * @return the instance (for chaining)
         */
        public Token setString(String string, String rawString, char delimiter) {
@@ -227,10 +227,10 @@ public class Token implements Cloneable {
        }
 
        /**
-        * Sets the token as space sequence.
+        * Sets the token as unknown type.
         *
-        * @param spaces
-        *            the space sequence
+        * @param info
+        *            the unknown input text not belonging to other token types
         * @return the instance (for chaining)
         */
        public Token setUnknown(String info) {
index ccd6fe1df57d02ea8d998c809698bc7f7d32d619..af7da08c962b65f2b600f9affae050ed779cdd1c 100644 (file)
@@ -30,6 +30,7 @@ public class Variable {
         * Assigns a new value to the instance.
         *
         * @param value
+        *            the value to assign
         */
        public void assign(Variant value) {
                this.value.redefine(value);
index 5a02690f028c7e650409c34ee05d73364d006182..8ad89333c6d1e8c86d9da3b9dd18ab4629566a02 100644 (file)
@@ -38,7 +38,7 @@ public class Variant implements Cloneable {
        /**
         * Constructor.
         *
-        * @param longValue
+        * @param value
         *            the instance becomes the type INTEGER with this value
         */
        public Variant(double value) {
@@ -346,7 +346,7 @@ public class Variant implements Cloneable {
        public boolean isBasicType(DataType type) {
                Variant value = this;
                while (value.isType(DataType.VARIABLE)) {
-                       value = this.variableValue.getValue();
+                       value = value.variableValue.getValue();
                }
                final boolean rc = value.isType(type);
                return rc;
@@ -383,7 +383,7 @@ public class Variant implements Cloneable {
        public Variant lValue() {
                Variant rc = this;
                while (rc.isType(DataType.VARIABLE)) {
-                       rc = this.variableValue.getValue();
+                       rc = rc.variableValue.getValue();
                        if (!rc.isType(DataType.VARIABLE)) {
                                rc = rc.copy();
                                break;
@@ -403,7 +403,7 @@ public class Variant implements Cloneable {
        protected Variant lValueImmutable() {
                Variant rc = this;
                while (rc.isType(DataType.VARIABLE)) {
-                       rc = this.variableValue.getValue();
+                       rc = rc.variableValue.getValue();
                }
                return rc;
        }
@@ -487,9 +487,10 @@ public class Variant implements Cloneable {
        }
 
        /**
-        * Takes the dataype from another instance.
+        * Takes the data type from another instance.
         *
         * @param source
+        *            the source to copy
         * @return the instance (for chaining)
         */
        public Variant redefine(Variant source) {
index 8b07c95d26f34a0005a72fd5c110e64499b577ff..5326cc859fbe9d9febb052a770fb23f2993e367a 100644 (file)
@@ -22,7 +22,7 @@ import de.republib.util.PairData;
  *
  * <pre>
  * ----------------------------
- * |<-- vertic. scale
+ * |&lt;-- vertic. scale
  * |
  * |
  * |
index aabd91c139f780bbabcc830769c932398fea9e0e..0a3275d4e4c2a93edd0980baa484184a516fa496 100644 (file)
@@ -61,8 +61,8 @@ public class MultiChannelSheet extends JPanel {
        /**
         * Adds a channel to the sheet.
         *
-        * @param channel
-        *            the channel to add
+        * @param data
+        *            the data for the channel (for displaying)
         * @return the instance (for chaining)
         */
        public MultiChannelSheet addChannel(IPairData data) {
index d47f647afb280c819c969879545d6e325f83e6e9..760f5ff56dd8c29ae3cc4d6290fdd509bc274060 100644 (file)
@@ -107,7 +107,7 @@ public class TcpClient {
         *            hostname of the address to compare
         * @param port
         *            port of the address to compare
-        * @return
+        * @return <i>true</i>: the instance have the same host/port as given
         */
        public boolean sameAddress(String host, int port) {
                return host.equals(this.host) && port == this.port;
@@ -115,7 +115,7 @@ public class TcpClient {
 
        /**
         *
-        * @param buffer
+        * @param message
         *            bytes to send
         */
        public void send(DynBytes message) {
index 2586eb4550d1d2860afcd50bc0f5c43071d419e5..670b85632fe6d922a24fda95017b065051fd4897 100644 (file)
@@ -18,6 +18,11 @@ public class Client {
 
        /**
         * Starts the graphical user interface client.
+        *
+        * @param host
+        *            the server name
+        * @param port
+        *            the ip port: 1..65535
         */
        public static void gui(String host, int port) {
                final ControlCenter center = new ControlCenter();
@@ -31,7 +36,7 @@ public class Client {
         * @param args
         *            program arguments
         */
-       public static void main(String... args) throws Exception {
+       public static void main(String... args) {
                Client.logger.info("start");
                int port = 15000;
                final String host = "127.0.0.1";
index 43ef611d0ab03fc91b31ab2a53e3784e063cf325..89b643d246855fb4b5ab90a85af3d7059d7f0680 100644 (file)
@@ -24,7 +24,9 @@ public class GpioClient extends TcpClient {
         * Constructor.
         *
         * @param host
+        *            the server name
         * @param port
+        *            the ip port: 1..65535
         */
        public GpioClient(String host, int port) {
                super(host, port);
@@ -76,10 +78,8 @@ public class GpioClient extends TcpClient {
         *
         * @param pin
         *            pin for output
-        * @param clock
-        *            minimal time slice of the pwm period in microseconds
-        * @param steps
-        *            number of time slices
+        * @param period
+        *            the period of the pwm signal in microseconds
         * @param startValue
         *            value of the first PWM period (in steps)
         * @param function
index bbd7ddc18f29738ebcbc09fcbc67cd27925688ab..35ed31e15ca7ca693b12f1a6cf77b0ce0d705596 100644 (file)
@@ -49,7 +49,9 @@ public enum PinNumber {
         * Finds the item by name
         *
         * @param name
-        * @return
+        *            the name of the pin to search
+        * @return <i>null</i>: not found<br>
+        *         otherwise: the pin number
         */
        public static PinNumber find(String name) {
                PinNumber rc = null;
index 5f3598cb05ed449685fb922547f02c89bf6f1c43..5540bfbceb06a6f193d760762d36a10d4fb2bb7a 100644 (file)
@@ -52,12 +52,14 @@ public class GPIOSettings extends JPanel {
        private OutputPwmPanel panelOutputPwmData;
        private InputPanel panelInputData;
        private InputPwmPanel panelInputPwmData;
+       private JPanel panelUndef;
        private final ControlCenter center;
 
        /**
+        * Constructor.
         *
         * @param center
-        * @return
+        *            the parent (control center)
         */
        public GPIOSettings(ControlCenter center) {
                super(new FlowLayout(FlowLayout.LEADING));
@@ -92,6 +94,13 @@ public class GPIOSettings extends JPanel {
                return this.panelOutputPwmData;
        }
 
+       /**
+        * @return the panelUndef
+        */
+       public JPanel getPanelUndef() {
+               return this.panelUndef;
+       }
+
        /**
         * Populates the panel with the widgets.
         */
@@ -110,6 +119,10 @@ public class GPIOSettings extends JPanel {
                this.panelInputData.setVisible(false);
                add(this.panelInputPwmData = new InputPwmPanel(this.center, panelPinData));
                this.panelInputPwmData.setVisible(false);
+               add(this.panelUndef = new JPanel(new MigLayout("fillx", "[left]rel[grow,fill]", "[]7[]")));
+               this.panelUndef.setVisible(true);
+               this.panelUndef.add(new JLabel(I18N.tr("The pin is not initialized for input/output")), "wrap");
+               this.panelUndef.add(new JLabel(I18N.tr("Select an input/output mode")));
        }
 }
 
@@ -705,8 +718,6 @@ class PinPanel extends JPanel implements ActionListener, FocusListener {
                        final int index = this.comboMode.getSelectedIndex();
                        if (this.currentPin.getMode() != index) {
                                final boolean isOutputPWM = index == PinButton.MODE_OUTPUT_PWM;
-                               this.logger.debug(
-                                               "actionPerformed(); changing mode: " + index + " isOutPwm: " + String.valueOf(isOutputPWM));
                                this.currentPin.setMode(index);
                                boolean visible = index == PinButton.MODE_OUTPUT_BLINK;
                                this.parent.getGpioSettings().getPanelOutputBlinkData().setVisible(visible);
@@ -715,6 +726,7 @@ class PinPanel extends JPanel implements ActionListener, FocusListener {
                                this.parent.getGpioSettings().getPanelInputData().setVisible(visible);
                                visible = index == PinButton.MODE_INPUT_PWM;
                                this.parent.getGpioSettings().getPanelInputPwmData().setVisible(visible);
+                               this.parent.getGpioSettings().getPanelUndef().setVisible(index == PinButton.MODE_UNDEF);
                        }
                }
        }
index 9bedf061053a9bd0aabf86471c8f7921c4b0234c..700ebfe8f13e28370833627badac8be21ef49bfb 100644 (file)
@@ -24,10 +24,15 @@ public class BytePairData extends DynBytes implements IPairData {
         * Constructor.
         *
         * @param capacity
+        *            the capacity at the start
         * @param blocksize
+        *            the minimum size while enlarging the buffer
         * @param minX
+        *            the minimum of the x coordinate
         * @param maxX
+        *            the maximum ot the x coordinate
         * @param dataWidth
+        *            the number of bytes of one item: 1..8
         */
        public BytePairData(int capacity, int blocksize, double minX, double maxX, int dataWidth) {
                super(capacity, blocksize);
@@ -134,6 +139,7 @@ public class BytePairData extends DynBytes implements IPairData {
         * @param name
         *            the name to set
         */
+       @Override
        public void setName(String name) {
                this.name = name;
        }
index 2c03111a7b13fc8f2cdbce7f2f826b3f58e8c409..7b394ea2d048a21df5fc6161ca109a9f7fd0454a 100644 (file)
@@ -23,6 +23,8 @@ public class DynBytes {
        /**
         * Convert a (binary) buffer content into a readable form.
         *
+        * @param buffer
+        *            the buffer with the content to dump
         * @param offset
         *            first index to dump: 0..length-1
         * @param length
@@ -80,10 +82,11 @@ public class DynBytes {
         * Constructor.
         *
         * @param capacity
-        *            the initial capacity of the buffer. If <= 0 it will be set to
-        *            16
+        *            the initial capacity of the buffer. If &lt;= 0 it will be set
+        *            to 16
         * @param blocksize
-        *            the initial blocksize. If <= 0 it will be set to 1
+        *            the initial blocksize. If lower or equal to 0 it will be set
+        *            to 1
         */
        public DynBytes(int capacity, int blocksize) {
                if (capacity <= 0) {
@@ -114,7 +117,7 @@ public class DynBytes {
         *            the byte array to add
         * @param offset
         *            the first index of <i>buffer</i> to add<br>
-        *            <i>0 <= offset < buffer.length</i><br>
+        *            <i>0 &lt;= offset &lt; buffer.length</i><br>
         *            If offset is out of range nothing will be done
         * @param length
         *            the number of bytes to add<br>
@@ -343,6 +346,8 @@ public class DynBytes {
         *            the first index of the integer
         * @param width
         *            the number of bytes of the integer
+        * @param defaultValue
+        *            the return value if an error occurres, e.g. index error
         * @return the value of the integer stored as little endian
         */
        public int intAsLittleEndian(int index, int width, int defaultValue) {
@@ -367,6 +372,8 @@ public class DynBytes {
         *            the first index of the integer
         * @param width
         *            the number of bytes of the integer
+        * @param defaultValue
+        *            the return value if an error occurres, e.g. index error
         * @return the value of the integer stored as little endian
         */
        public long longAsLittleEndian(int index, int width, long defaultValue) {
@@ -388,7 +395,7 @@ public class DynBytes {
         * Sets the blocksize.
         *
         * @param blocksize
-        *            the new blocksize. Values < 1 will be set to 1
+        *            the new blocksize. Values &lt; 1 will be set to 1
         */
        public void setBlocksize(int blocksize) {
                this.blocksize = blocksize;
@@ -398,7 +405,7 @@ public class DynBytes {
         * Sets the current length.
         *
         * @param length
-        *            < 0: the length is set to 0<br>
+        *            &lt; 0: the length is set to 0<br>
         *            otherwise: the new length
         * @return the instance (for chaining)
         */
index b8932ae88e55bf9b7b58232db9398e17857a9a0f..dd0bc8a627e8fbefbbb501e2e1ae866f2a7c5163 100644 (file)
@@ -17,7 +17,7 @@ public class I18N {
         *            text to translate
         * @return the translated text
         */
-       public static String tr(final String key) {
-               return key;
+       public static String tr(final String text) {
+               return text;
        }
 }
index e100aafbbe5ca3fea6d6357bae507060cb169bcc..c8bfa46dbd1947a75ca7fc59db6781886776c87c 100644 (file)
@@ -31,7 +31,9 @@ public class PairData {
         *
         * @param data
         *            data to inspect
-        * @return the minimal of the y values
+        * @param minMax
+        *            the buffer for the result
+        * @return <i>minMax</i> with the minimum and the maximum values
         */
        public static DoublePair minMaxY(IPairData data, DoublePair minMax) {
                double min = data.getY(0);
index 3ea94a14a2ae17d6f5171f0af3fe44add15d15e0..38df10e80380845074ddd62ff9623b278dc11bf1 100644 (file)
@@ -1,9 +1,14 @@
 package de.republib.expr;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class ExpressionTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("Expression started");
+       }
 
        @Test
        public void shouldConstruct() throws ParserException {
index b2ab884cf32b2acbe2b1ee6a92644b551920895a..b040d84d1d15f99afda9c55750c1a6486b58e1d7 100644 (file)
@@ -1,9 +1,15 @@
 package de.republib.expr;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class ScannerTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("Scanner started");
+       }
+
        @Test
        public void shouldConstruct() {
                final Scanner scanner = new Scanner("");
index 4702f8ef7a278d919ae86da91fc82b737ea41472..c5280940d794c71b620694d2dd7bfff90ea05e40 100644 (file)
@@ -1,9 +1,14 @@
 package de.republib.expr;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class VariableTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("Variable started");
+       }
 
        @Test
        public void shouldAssign() {
index 886bf91a34470267cbb19568c41d912ce39afccf..15773d6d2136ae1d99e514158c07adca77b56919 100644 (file)
@@ -1,9 +1,15 @@
 package de.republib.expr;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class VariantTest extends Variant {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("Variant started");
+       }
+
        VariantTest() {
                super("Test");
        }
@@ -238,6 +244,13 @@ public class VariantTest extends Variant {
                Assert.assertTrue(val1.isType(DataType.VARIABLE));
                Assert.assertTrue(val1.getVariableValue().getValue().isType(DataType.VARIABLE));
                Assert.assertTrue(val1.isBasicType(DataType.LONG));
+               Assert.assertTrue(val1.lValue().isType(DataType.LONG));
+               Assert.assertEquals(val1.lValue().getLongValue(), 44L);
+               // changing lvalue() does not change the variable value:
+               val1.lValue().redefineLong(77L);
+               // Test now the unchanged variable value:
+               Assert.assertTrue(val1.lValueImmutable().isBasicType(DataType.LONG));
+               Assert.assertEquals(val1.lValueImmutable().getLongValue(), 44L);
        }
 
        @Test
index 3fd8e21d650688230f3b1c6bf74b6d4189f6fe5b..23fa4becdb2e6c6eb350d9f5dcd9395796e3d6b8 100644 (file)
@@ -3,10 +3,16 @@ package de.republib.gui;
 import javax.swing.JTextField;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class GuiUtilsTest {
 
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("GuiUtils started");
+       }
+
        @Test
        public void numberOf() {
                final JTextField field = new JTextField();
index b54727391372845b5d1c816d5432d17c944b8f95..80d107548db8e9ae382e8872d3825c2dcb9de6d6 100644 (file)
@@ -3,6 +3,7 @@ package de.republib.util;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 /**
@@ -14,6 +15,11 @@ import org.testng.annotations.Test;
 public class BytePairDataTest {
        static Logger logger = LoggerFactory.getLogger(BytePairDataTest.class);
 
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("BytePairData started");
+       }
+
        @Test
        public void BytePairData() {
                for (int width = 1; width <= 8; width++) {
index 01bb1d9e74f64f255c504cd72e85f4cc06f8ea22..c183c2e686d60e150fec759d9d73d29c5f7cc9fc 100644 (file)
@@ -1,11 +1,17 @@
 package de.republib.util;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 
 /**
  * Tests the class <i>DynBytes</i>.
  */
 public class DynBytesTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("DynBytes started");
+       }
+
        @org.testng.annotations.BeforeMethod
        public void setUp() throws Exception {
 
index 3fc2b2c27b1375012093f6d4451ba433654b02fb..936491461d2edb6477ac8538d3bc78c597300ae6 100644 (file)
@@ -1,9 +1,14 @@
 package de.republib.util;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class FunctionPairDataTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("FunctionPairData started");
+       }
 
        void checkFunctionCos() {
                final FunctionPairData data = new FunctionPairData(MathFunction.COS, 0.0, 4 * Math.PI / 4, 4);
index 8a62a2057d2e3688e80495c26e29f78f97d140fd..1df92ad75929cccfa0c8d2250f56ff667564fa5f 100644 (file)
@@ -1,9 +1,14 @@
 package de.republib.util;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class PairDataTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("PairData started");
+       }
 
        @Test
        public void maxY() {
index 88b0360a7c547d300a588f713b444f9a4fc58d4d..d67885e16f0b52c297cdbf280f388b1af6bac67a 100644 (file)
@@ -1,9 +1,14 @@
 package de.republib.util;
 
 import org.testng.Assert;
+import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.Test;
 
 public class StringUtilsTest {
+       @BeforeSuite
+       public static void beforeSuite() {
+               System.out.println("StringUtils started");
+       }
 
        private void checkPrec1() {
                final double value = 1234567.77;