Apache Commons logo Apache Commons Geometry

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
233 0 0 0 100% 10.712

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.geometry.io.euclidean 2 0 0 0 100% 0.454
org.apache.commons.geometry.io.euclidean.threed 46 0 0 0 100% 9.749
org.apache.commons.geometry.io.euclidean.threed.obj 70 0 0 0 100% 0.098
org.apache.commons.geometry.io.euclidean.threed.txt 43 0 0 0 100% 0.033
org.apache.commons.geometry.io.euclidean.threed.stl 72 0 0 0 100% 0.378

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.geometry.io.euclidean

Class Tests Errors Failures Skipped Success Rate Time
DocumentationExamplesTest 2 0 0 0 100% 0.454

org.apache.commons.geometry.io.euclidean.threed

Class Tests Errors Failures Skipped Success Rate Time
SimpleFacetDefinitionTest 4 0 0 0 100% 0.004
BoundaryIOManager3DTest 22 0 0 0 100% 0.016
IO3DTest 9 0 0 0 100% 9.723
FacetDefinitionsTest 5 0 0 0 100% 0.003
AbstractBoundaryReadHandler3DTest 6 0 0 0 100% 0.003

org.apache.commons.geometry.io.euclidean.threed.obj

Class Tests Errors Failures Skipped Success Rate Time
ObjWriterTest 23 0 0 0 100% 0.02
PolygonObjParserTest 23 0 0 0 100% 0.038
ObjTriangleMeshReaderTest 5 0 0 0 100% 0.005
ObjBoundaryReadHandler3DTest 7 0 0 0 100% 0.006
ObjBoundaryWriteHandler3DTest 7 0 0 0 100% 0.018
ObjFacetDefinitionReaderTest 5 0 0 0 100% 0.011

org.apache.commons.geometry.io.euclidean.threed.txt

Class Tests Errors Failures Skipped Success Rate Time
TextBoundaryWriteHandler3DTest 6 0 0 0 100% 0.004
TextBoundaryReadHandler3DTest 5 0 0 0 100% 0.001
TextFacetDefinitionReaderTest 13 0 0 0 100% 0.009
TextFacetDefinitionWriterTest 19 0 0 0 100% 0.019

org.apache.commons.geometry.io.euclidean.threed.stl

Class Tests Errors Failures Skipped Success Rate Time
BinaryStlFacetDefinitionReaderTest 11 0 0 0 100% 0.026
TextStlFacetDefinitionReaderTest 8 0 0 0 100% 0.007
TextStlWriterTest 23 0 0 0 100% 0.024
StlBoundaryWriteHandler3DTest 11 0 0 0 100% 0.287
BinaryStlWriterTest 6 0 0 0 100% 0.006
StlFacetDefinitionReadersTest 5 0 0 0 100% 0.009
StlBoundaryReadHandler3DTest 8 0 0 0 100% 0.019

Test Cases

[Summary] [Package List] [Test Cases]

SimpleFacetDefinitionTest

testToString 0
testProperties_verticesAndNormal 0.002
testProperties_verticesOnly 0.001
testCtor_invalidArgs 0.001

BoundaryIOManager3DTest

testFacetDefinitionReader_unknownHandler 0.002
testWriteFacets_collection_formatGiven 0
testReadTriangleMesh_formatGiven 0.001
testWriteFacets_stream_formatGiven 0
testWriteFacets_collection_unknownHandler 0.001
testReadTriangleMesh_nullFormat 0
testWriteFacets_stream_unknownHandler 0
testTriangles_unknownHandler 0.001
testFacetDefinitionReader_formatGiven 0
testWrite_stream_formatGiven 0.001
testFacets_formatGiven 0
testWriteFacets_collection_nullFormat 0
testTriangles_nullFormat 0
testWrite_stream_unknownHandler 0.001
testFacets_unknownHandler 0.001
testFacets_nullFormat 0
testRegisterDefaultHandlers 0.001
testFacetDefinitionReader_nullFormat 0
testReadTriangleMesh_unknownHandler 0.001
testWriteFacets_stream_nullFormat 0
testWrite_stream_nullFormat 0.001
testTriangles_formatGiven 0

BinaryStlFacetDefinitionReaderTest

testHeader_zeros 0.001
testReadFacet 0.001
testHeader_longString_givenCharset 0.016
testHeader_ones 0
testHeader_longString 0.001
testHeader_shortString 0
testGetHeader_ioException 0.001
testReadFacet_noData 0.001
testReadFacet_stopsWhenTriangleCountReached 0
testGetHeader_noData 0
testGetHeader_noTriangleCount 0

ObjWriterTest

testWriteBoundaries_nonMeshArgument_smallBatchSize 0
testWriteFace_normalIndexOutOfBounds 0.001
testWriteBoundaries_infiniteBoundary 0.001
testMeshBuffer_givenBatchSize 0
testClose_calledMultipleTimes 0
testWriteFace_vertexIndexOutOfBounds 0.001
testWriteFace_invalidVertexAndNormalCountMismatch 0.001
testWriteFace 0.001
testWriteMesh 0
testWriteBoundaries_nonMeshArgument 0
testMeshBuffer 0.001
testWriteFace_withNormals 0
testWriteFace_invalidVertexNumber 0.001
testPropertyDefaults 0.001
testWriteGroupName 0
testSetLineSeparator 0
testWriteObjectName 0.001
testWriteComment 0
testWriteNormal 0.001
testWriteVertex 0.001
testMeshBuffer_mixedWithDirectlyAddedFace 0
testSetDecimalFormat 0
testWriteBoundaries_meshArgument 0.001

IO3DTest

testReadWriteFacets_facetStream 1.679
testWriteFacetStream 1.334
testReadWriteFacets_facetDefinitionReader 1.146
testReadWriteBoundarySource_boundaryStream 1.04
testReadWriteBoundarySource_triangleMesh 1.25
testReadWriteBoundarySource_triangleStream 1.134
testWriteBoundaryStream 1.124
testReadWriteBoundarySource 1.013
testStreamExample 0.002

TextBoundaryWriteHandler3DTest

testWriteFacets_usesOutputCharset 0
testWriteFacets_customConfiguration 0.001
testProperties 0
testWriteBoundarySource_customConfiguration 0.001
testWriteBoundarySource 0.001
testWriteFacets 0

DocumentationExamplesTest

testIO3DExample 0.191
testIndexPageExample 0.243

TextBoundaryReadHandler3DTest

testProperties 0
testFacetDefinitionReader_setDefaultCharset 0
testFacetDefinitionReader_usesInputCharset 0
testFacetDefinitionReader 0.001
testFacetDefinitionReader_close 0

PolygonObjParserTest

testNextKeyword_polygonKeywordsOnly_valid 0.001
testReadFace_invalidNormalIndex 0.003
testParse 0.004
testReadVector 0
testFace_computeNormalFromVertices 0.001
testNextKeyword_unexpectedContent 0.001
testReadFace_invalidTextureIndex 0.002
testReadDoubles_parseFailures 0.001
testReadFace 0.001
testNextKeyword 0
testFace_getVertices 0.002
testReadDoubles 0.001
testInitialState 0.001
testFace_getVertexAttributesCounterClockwise 0.001
testReadFace_notEnoughVertices 0.002
testFace_getDefinedCompositeNormal 0.001
testReadDataLine 0.001
testNextKeyword_polygonKeywordsOnly_invalid 0.001
testFace_getVerticesCounterClockwise 0.001
testDiscardDataLine 0
testNextKeyword_emptyContent 0.001
testReadFace_invalidVertexIndex 0.002
testReadVector_parseFailures 0.001

TextStlFacetDefinitionReaderTest

testParseErrors 0.001
testClose 0
testEmpty 0.001
testContentEndsEarly 0
testMultipleFacets 0.001
testGetSolidName 0
testNoName 0
testSingleFacet 0.001

TextFacetDefinitionReaderTest

testReadFacet_invalidTokens 0
testReadFacet_notEnoughVectors 0.002
testReadFacet_longCommentToken 0.001
testReadFacet_singleFacet 0
testReadFacet_empty 0.001
testClose 0
testReadFacet_blankLinesAndComments 0
testPropertyDefaults 0
testReadFacet_multipleFacets 0
testReadFacet_emptyCommentToken 0
testSetCommentToken_invalidArgs 0.001
testReadFacet_nullCommentToken 0
testReadFacet_nonDefaultCommentToken 0

ObjTriangleMeshReaderTest

testClose 0
testReadTriangleMesh_withNormal 0.002
testReadTriangleMesh_failOnNonPolygon 0.001
testDefaults 0.001
testReadTriangleMesh_withoutNormal 0

TextStlWriterTest

testWriteTriangle_noNormal_computesNormal 0
testNoContent 0.001
testWrite_facetDefinition_noNormal 0.002
testWriteTriangle_withNormal_reversedOrientation 0.001
testStartSolid_alreadyStarted 0.001
testWrite_badFacet_noNormal 0.001
testWrite_customFormat 0.001
testWriteTriangle_withNormal_correctOrientation 0
testWriteTriangle_zeroNormal_computesNormal 0.001
testClose_endsSolid 0.001
testWrite_badFacet_withNormal 0.001
testWrite_verticesAndNormal 0.002
testWrite_verticesAndNormal_moreThanThreeVertices 0
testWriteTriangle_noNormal_cannotComputeNormal 0
testEmpty_noName 0
testStartSolid_containsNewLine 0.001
testDefaultProperties 0.001
testWrite_noSolidStarted 0.001
testWrite_facetDefinition_withNormal 0.001
testWrite_boundary 0
testEndSolid_notStarted 0.001
testWrite_verticesAndNormal_fewerThanThreeVertices 0.001
testEmpty_withName 0

ObjBoundaryReadHandler3DTest

testProperties 0
testFacetDefinitionReader_setDefaultCharset 0.001
testFacetDefinitionReader_usesInputCharset 0.001
testReadTriangleMesh_nonDefaultCharset 0.002
testFacetDefinitionReader 0.001
testFacetDefinitionReader_close 0.001
testReadTriangleMesh 0

StlBoundaryWriteHandler3DTest

testSetInitialBufferSize 0
setInitialBufferSize_invalidArg 0
testWrite_triangleMesh 0.137
testProperties 0
testWriteStream_ioException 0.049
testWriteFacets_includesStlFacetAttribute 0.001
testWriteFacets_list 0.002
testWrite_boundaryList 0.091
testWrite_triangleMesh_empty 0
testWrite_boundarySource_empty 0
testWriteFacets_list_empty 0

BinaryStlWriterTest

testWriteFacet 0.002
testWriteFacet_ordersFacetCounterClockwise 0
testWriteHeader_givenHeaderContentExceedsMaxLength 0
testWriteHeader_givenHeaderContent 0
testWriteFacet_invalidNormalGiven 0
testWriteHeader_nullHeaderContent 0.001

ObjBoundaryWriteHandler3DTest

testWriteFacets_usesOutputCharset 0.006
testProperties 0.001
testWrite_mesh 0.001
testWrite 0.001
testWrite_customConfig 0.002
testWriteFacets_customConfig 0.001
testWriteFacets 0

StlFacetDefinitionReadersTest

testCreate_nonStandardCharset_charsetGiven 0
testCreate_cubeBinaryFile 0.002
testCreate_cubeAsciiFile 0.003
testCreate_nonStandardCharset_noCharsetGiven 0
testCreate_notEnoughBytes 0.001

ObjFacetDefinitionReaderTest

testClose 0.001
testReadFacet_withoutNormal 0.002
testReadFacet_withNormal 0.001
testDefaults 0.001
testReadFacet_failOnNonPolygon 0.004

StlBoundaryReadHandler3DTest

testRead_notEnoughBytes 0
testProperties 0
testRead_incorrectCharset 0.001
testReadMethods_cubeBinary 0.009
testRead_usesInputCharset 0.001
testRead_closesInputOnReaderCreationFailure 0.001
testReadMethods_cubeAscii 0.005
testRead_setDefaultCharset 0

FacetDefinitionsTest

testToPolygon_invalidArgs 0
testToPolygon_withNormal_differentDirection 0.001
testToPolygon_withNormal_similarDirection 0
testToPolygon_noNormal 0
testToPolygon_failure 0.001

AbstractBoundaryReadHandler3DTest

testBoundaries 0
testRead 0
testFacetIterator 0.001
testReadTriangleMesh 0
testFacetIterator_readFails 0.001
testFacets 0

TextFacetDefinitionWriterTest

testSetFacetVertexCount_normalizesToMinusOne 0.001
testWriteVertices 0.001
testWritePlaneConvexSubset 0
testWritePlaneConvexSubset_infinite 0.001
testWriteComment_noCommentToken 0.001
testWriteBlankLine 0.001
testSetFacetVertexCount_invalidArgs 0.002
testPropertyDefaults 0.001
testCsvFormat 0.001
testWriteBoundarySource 0
testWriteComment 0
testWriteBoundarySource_empty 0.001
testWriteBoundarySource_alternativeFormatting 0.001
testCsvFormat_properties 0
testWriteFacetDefinition 0.001
testSetCommentToken_invalidArgs 0.002
testWritePlaneConvexSubset_convertsToTriangles 0.001
testWriteFacetDefinition_invalidCount 0.001
testWriteVertices_invalidCount 0.001