diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2014-07-18 13:48:43 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2014-07-18 13:48:43 +0000 |
commit | a1e5851e19b3b2f0b3224a4e9dd084515b280f72 (patch) | |
tree | 98eca0e2bcaf6b674c5543aefe77ad0e415a9451 /test/java | |
parent | dc62d1034852b4e9102d4a9a200e85717323e5f4 (diff) | |
download | xmlgraphics-fop-a1e5851e19b3b2f0b3224a4e9dd084515b280f72.tar.gz xmlgraphics-fop-a1e5851e19b3b2f0b3224a4e9dd084515b280f72.zip |
Check bounds and encode
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r-- | test/java/org/apache/fop/render/gradient/GradientTestCase.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/java/org/apache/fop/render/gradient/GradientTestCase.java b/test/java/org/apache/fop/render/gradient/GradientTestCase.java index a7796ca46..13a1c173d 100644 --- a/test/java/org/apache/fop/render/gradient/GradientTestCase.java +++ b/test/java/org/apache/fop/render/gradient/GradientTestCase.java @@ -100,6 +100,16 @@ public class GradientTestCase { return this; } + FunctionChecker bounds(Double... expectedBounds) { + assertArrayEquals(expectedBounds, function.getBounds().toArray()); + return this; + } + + FunctionChecker encode(Double... expectedEncode) { + assertArrayEquals(expectedEncode, function.getEncode().toArray()); + return this; + } + FunctionChecker cZero(float... expectedCZero) { assertArrayEquals(expectedCZero, function.getCZero(), 0f); return this; @@ -137,6 +147,8 @@ public class GradientTestCase { FunctionChecker functionChecker = shadingChecker.function() .functionType(3) .domain(0.0, 1.0) + .bounds() + .encode(0.0, 1.0) .functions(1); functionChecker.function(0) .functionType(2) |