Skip to content

Instantly share code, notes, and snippets.

@DeaconDesperado
Created July 15, 2013 13:46
Show Gist options
  • Save DeaconDesperado/6000053 to your computer and use it in GitHub Desktop.
Save DeaconDesperado/6000053 to your computer and use it in GitHub Desktop.
mvn output
WARNING: -p has been deprecated and will be reused for a different (but still very cool) purpose in ScalaTest 2.0. Please change all uses of -p to -R.
Run starting. Expected test count is: 89
DiscoverySuite:
GifWriterTest:
- GIF output happy path *** FAILED ***
com.sksamuel.scrimage.Image@584a5c78 did not equal com.sksamuel.scrimage.Image@79fcf790 (GifWriterTest.scala:19)
- GIF progressive output happy path *** FAILED ***
com.sksamuel.scrimage.Image@31d8d237 did not equal com.sksamuel.scrimage.Image@11d13272 (GifWriterTest.scala:30)
MutableImageTest:
- when flipping on x axis a new image is not created
- when flipping on y axis a new image is not created
- when filling an image then a new image is not created
- when creating a mutable copy of an existing image then the underlying image is copied
PixelToolsTest:
- non transparent alpha component
- transparent alpha component
- red component
- blue component
- green component
- rgb combination
ImageToolsTest:
- when writing out an image then the array is the right length
- when given a vertical box then it is scaled to fit
- when given a horizontal box then it is scaled to fit
- when given a box that is already the same size as the target then the same dimensions are returned
- when covering an area that is the same size as the source then the same dimensions are returned
- when covering an area that is wider than the source then the dimensions have the larger width
- when covering an area that is taller than the source then the dimensions have the larger height
- when covering an area that is wider and taller than the aspect ratio is maintained
PositionTest:
- centre positions image in the centre of the canvas
- centre left positions image at (0,center) of the canvas
- centre right positions image at (image-width,centre) of the canvas
- top left positions image at (0,0) of the canvas
- top center positions image at (center,top) of the canvas
- top right positions image at (image-width,0) of the canvas
- bottom left positions image at (0,0) of the canvas
- bottom center positions image at (center,bottom) of the canvas
- bottom right positions image at (right,centre) of the canvas
JpegWriterTest:
- jpeg compression happy path
TiffReaderTest:
- tiff file reads pixels
AsyncImageTest:
- fit delegates to image
- scaleTo delegates to image
- resizeTo delegates to image
- dimensions happy path
- foreach accesses to each pixel
- map modifies each pixel and returns new image
ImageTest:
- ratio happy path
- copy returns a new backing image
- when scaling by pixels then the output image has the given dimensions
- when scaling by scale factor then the output image has the scaled dimensions
- when trimming the new image has the trimmed dimensions
*** RUN ABORTED ***
java.lang.OutOfMemoryError: Java heap space
at scala.collection.immutable.VectorPointer$class.gotoNextBlockStartWritable(Vector.scala:886)
at scala.collection.immutable.VectorBuilder.gotoNextBlockStartWritable(Vector.scala:692)
at scala.collection.immutable.VectorBuilder.$plus$eq(Vector.scala:706)
at scala.collection.immutable.VectorBuilder.$plus$eq(Vector.scala:692)
at scala.collection.generic.Growable$$anonfun$$plus$plus$eq$1.apply(Growable.scala:48)
at scala.collection.generic.Growable$$anonfun$$plus$plus$eq$1.apply(Growable.scala:48)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Scrimage .......................................... SUCCESS [0.680s]
[INFO] scrimage-core ..................................... FAILURE [39.695s]
[INFO] scrimage-filters .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.558s
[INFO] Finished at: Mon Jul 15 09:45:41 EDT 2013
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0-M2:test (test) on project scrimage-core: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :scrimage-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment