You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2016/06/11 07:10:21 UTC
svn commit: r1747853 -
/poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java
Author: onealj
Date: Sat Jun 11 07:10:21 2016
New Revision: 1747853
URL: http://svn.apache.org/viewvc?rev=1747853&view=rev
Log:
shorten PropertyTemplate.Extent to Extent
Modified:
poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java
Modified: poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java
URL: http://svn.apache.org/viewvc/poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java?rev=1747853&r1=1747852&r2=1747853&view=diff
==============================================================================
--- poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java (original)
+++ poi/branches/ss_border_property_template/src/testcases/org/apache/poi/ss/util/TestPropertyTemplate.java Sat Jun 11 07:10:21 2016
@@ -85,7 +85,7 @@ public final class TestPropertyTemplate
CellRangeAddress a1c3 = new CellRangeAddress(0, 2, 0, 2);
PropertyTemplate pt = new PropertyTemplate();
pt.drawBorders(a1c3, CellStyle.BORDER_THIN,
- PropertyTemplate.Extent.ALL);
+ Extent.ALL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
@@ -100,7 +100,7 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE);
+ Extent.OUTSIDE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
@@ -231,14 +231,14 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(0, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.TOP);
+ Extent.TOP);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -251,9 +251,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.BOTTOM);
+ Extent.BOTTOM);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 2) {
@@ -266,9 +266,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.LEFT);
+ Extent.LEFT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
@@ -281,9 +281,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.RIGHT);
+ Extent.RIGHT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 2) {
@@ -296,9 +296,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.HORIZONTAL);
+ Extent.HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
@@ -309,9 +309,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.INSIDE_HORIZONTAL);
+ Extent.INSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -332,9 +332,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE_HORIZONTAL);
+ Extent.OUTSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -351,9 +351,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.VERTICAL);
+ Extent.VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
@@ -364,9 +364,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.INSIDE_VERTICAL);
+ Extent.INSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
@@ -387,9 +387,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE_VERTICAL);
+ Extent.OUTSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
@@ -412,7 +412,7 @@ public final class TestPropertyTemplate
CellRangeAddress a1c3 = new CellRangeAddress(0, 2, 0, 2);
PropertyTemplate pt = new PropertyTemplate();
pt.drawBorderColors(a1c3, IndexedColors.RED.getIndex(),
- PropertyTemplate.Extent.ALL);
+ Extent.ALL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
@@ -430,7 +430,7 @@ public final class TestPropertyTemplate
}
}
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE);
+ Extent.OUTSIDE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
@@ -562,9 +562,9 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(0, pt.getNumBorders(i, j));
@@ -572,7 +572,7 @@ public final class TestPropertyTemplate
}
}
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.TOP);
+ Extent.TOP);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -588,11 +588,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.BOTTOM);
+ Extent.BOTTOM);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 2) {
@@ -608,11 +608,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.LEFT);
+ Extent.LEFT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
@@ -628,11 +628,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.RIGHT);
+ Extent.RIGHT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 2) {
@@ -648,11 +648,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.HORIZONTAL);
+ Extent.HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
@@ -665,11 +665,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.INSIDE_HORIZONTAL);
+ Extent.INSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -697,11 +697,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE_HORIZONTAL);
+ Extent.OUTSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
@@ -723,11 +723,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.VERTICAL);
+ Extent.VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
@@ -740,11 +740,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.INSIDE_VERTICAL);
+ Extent.INSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
@@ -772,11 +772,11 @@ public final class TestPropertyTemplate
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE_VERTICAL);
+ Extent.OUTSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org