pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1846546 - in /pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox: cos/COSObjectKeyTest.java pdfwriter/COSWriterXRefEntryTest.java pdmodel/PageLayoutTest.java pdmodel/PageModeTest.java pdmodel/graphics/state/RenderingIntentTest.java
Date Tue, 13 Nov 2018 20:28:28 GMT
Author: tilman
Date: Tue Nov 13 20:28:28 2018
New Revision: 1846546

URL: http://svn.apache.org/viewvc?rev=1846546&view=rev
Log:
PDFBOX-4373: reformat

Modified:
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/cos/COSObjectKeyTest.java
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfwriter/COSWriterXRefEntryTest.java
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageLayoutTest.java
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageModeTest.java
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntentTest.java

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/cos/COSObjectKeyTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/cos/COSObjectKeyTest.java?rev=1846546&r1=1846545&r2=1846546&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/cos/COSObjectKeyTest.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/cos/COSObjectKeyTest.java Tue
Nov 13 20:28:28 2018
@@ -16,19 +16,19 @@
  */
 package org.apache.pdfbox.cos;
 
-import org.apache.pdfbox.cos.COSObjectKey;
 import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
-public class COSObjectKeyTest {
-
-    @Rule public ExpectedException thrown = ExpectedException.none();
+public class COSObjectKeyTest
+{
+    @Rule
+    public ExpectedException thrown = ExpectedException.none();
 
     @Test
-    public void compareToInputNotNullOutputZero() {
-
+    public void compareToInputNotNullOutputZero()
+    {
         // Arrange
         final COSObjectKey objectUnderTest = new COSObjectKey(0L, 0);
         final COSObjectKey other = new COSObjectKey(0L, 0);
@@ -41,8 +41,8 @@ public class COSObjectKeyTest {
     }
 
     @Test
-    public void compareToInputNotNullOutputPositive() {
-
+    public void compareToInputNotNullOutputPositive()
+    {
         // Arrange
         final COSObjectKey objectUnderTest = new COSObjectKey(0L, 0);
         final COSObjectKey other = new COSObjectKey(-9223372036854775808L, 0);

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfwriter/COSWriterXRefEntryTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfwriter/COSWriterXRefEntryTest.java?rev=1846546&r1=1846545&r2=1846546&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfwriter/COSWriterXRefEntryTest.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdfwriter/COSWriterXRefEntryTest.java
Tue Nov 13 20:28:28 2018
@@ -16,19 +16,19 @@
  */
 package org.apache.pdfbox.pdfwriter;
 
-import org.apache.pdfbox.pdfwriter.COSWriterXRefEntry;
 import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
-public class COSWriterXRefEntryTest {
-
-    @Rule public ExpectedException thrown = ExpectedException.none();
+public class COSWriterXRefEntryTest
+{
+    @Rule
+    public ExpectedException thrown = ExpectedException.none();
 
     @Test
-    public void compareToInputNullOutputNegative() {
-
+    public void compareToInputNullOutputNegative()
+    {
         // Arrange
         final COSWriterXRefEntry objectUnderTest = new COSWriterXRefEntry(0L, null, null);
         final COSWriterXRefEntry obj = null;

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageLayoutTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageLayoutTest.java?rev=1846546&r1=1846545&r2=1846546&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageLayoutTest.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageLayoutTest.java
Tue Nov 13 20:28:28 2018
@@ -27,6 +27,7 @@ public class PageLayoutTest
 {
     /**
      * @author Tilman Hausherr
+     *
      * Test for completeness (PDFBOX-3362).
      */
     @Test
@@ -47,10 +48,12 @@ public class PageLayoutTest
     /**
      * @author John Bergqvist
      */
-    @Rule public ExpectedException thrown = ExpectedException.none();
-    @Test
-    public void fromStringInputNotNullOutputIllegalArgumentException() {
+    @Rule
+    public ExpectedException thrown = ExpectedException.none();
 
+    @Test
+    public void fromStringInputNotNullOutputIllegalArgumentException()
+    {
         // Arrange
         final String value = "SinglePag";
 

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageModeTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageModeTest.java?rev=1846546&r1=1846545&r2=1846546&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageModeTest.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/PageModeTest.java Tue
Nov 13 20:28:28 2018
@@ -16,20 +16,19 @@
  */
 package org.apache.pdfbox.pdmodel;
 
-import org.apache.pdfbox.pdmodel.PageMode;
 import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.junit.rules.Timeout;
 
-public class PageModeTest {
-
-    @Rule public ExpectedException thrown = ExpectedException.none();
+public class PageModeTest
+{
+    @Rule
+    public ExpectedException thrown = ExpectedException.none();
 
     @Test
-    public void fromStringInputNotNullOutputNotNull() {
-
+    public void fromStringInputNotNullOutputNotNull()
+    {
         // Arrange
         final String value = "FullScreen";
 
@@ -41,8 +40,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull2() {
-
+    public void fromStringInputNotNullOutputNotNull2()
+    {
         // Arrange
         final String value = "UseThumbs";
 
@@ -54,8 +53,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull3() {
-
+    public void fromStringInputNotNullOutputNotNull3()
+    {
         // Arrange
         final String value = "UseOC";
 
@@ -67,8 +66,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull4() {
-
+    public void fromStringInputNotNullOutputNotNull4()
+    {
         // Arrange
         final String value = "UseNone";
 
@@ -80,8 +79,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull5() {
-
+    public void fromStringInputNotNullOutputNotNull5()
+    {
         // Arrange
         final String value = "UseAttachments";
 
@@ -93,8 +92,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull6() {
-
+    public void fromStringInputNotNullOutputNotNull6()
+    {
         // Arrange
         final String value = "UseOutlines";
 
@@ -106,8 +105,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputIllegalArgumentException() {
-
+    public void fromStringInputNotNullOutputIllegalArgumentException()
+    {
         // Arrange
         final String value = "";
 
@@ -119,8 +118,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputIllegalArgumentException2() {
-
+    public void fromStringInputNotNullOutputIllegalArgumentException2()
+    {
         // Arrange
         final String value = "Dulacb`ecj";
 
@@ -132,8 +131,8 @@ public class PageModeTest {
     }
 
     @Test
-    public void stringValueOutputNotNull() {
-
+    public void stringValueOutputNotNull()
+    {
         // Arrange
         final PageMode objectUnderTest = PageMode.USE_OPTIONAL_CONTENT;
 

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntentTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntentTest.java?rev=1846546&r1=1846545&r2=1846546&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntentTest.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/state/RenderingIntentTest.java
Tue Nov 13 20:28:28 2018
@@ -16,19 +16,19 @@
  */
 package org.apache.pdfbox.pdmodel.graphics.state;
 
-import org.apache.pdfbox.pdmodel.graphics.state.RenderingIntent;
 import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
-public class RenderingIntentTest {
-
-    @Rule public ExpectedException thrown = ExpectedException.none();
+public class RenderingIntentTest
+{
+    @Rule
+    public ExpectedException thrown = ExpectedException.none();
 
     @Test
-    public void fromStringInputNotNullOutputNotNull() {
-
+    public void fromStringInputNotNullOutputNotNull()
+    {
         // Arrange
         final String value = "AbsoluteColorimetric";
 
@@ -40,8 +40,8 @@ public class RenderingIntentTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull2() {
-
+    public void fromStringInputNotNullOutputNotNull2()
+    {
         // Arrange
         final String value = "RelativeColorimetric";
 
@@ -53,8 +53,8 @@ public class RenderingIntentTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull3() {
-
+    public void fromStringInputNotNullOutputNotNull3()
+    {
         // Arrange
         final String value = "Perceptual";
 
@@ -66,8 +66,8 @@ public class RenderingIntentTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull4() {
-
+    public void fromStringInputNotNullOutputNotNull4()
+    {
         // Arrange
         final String value = "Saturation";
 
@@ -79,8 +79,8 @@ public class RenderingIntentTest {
     }
 
     @Test
-    public void fromStringInputNotNullOutputNotNull5() {
-
+    public void fromStringInputNotNullOutputNotNull5()
+    {
         // Arrange
         final String value = "";
 
@@ -92,8 +92,8 @@ public class RenderingIntentTest {
     }
 
     @Test
-    public void stringValueOutputNotNull() {
-
+    public void stringValueOutputNotNull()
+    {
         // Arrange
         final RenderingIntent objectUnderTest = RenderingIntent.ABSOLUTE_COLORIMETRIC;
 



Mime
View raw message