Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
97 0 0 0 100% 3.166 s

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
- 80 0 0 0 100% 0.415 s
lv.id.jc.piglatin 1 0 0 0 100% 2.175 s
lv.id.jc.piglatin.service 3 0 0 0 100% 0.028 s
lv.id.jc.piglatin.actuator 4 0 0 0 100% 0.067 s
lv.id.jc.piglatin.controller 9 0 0 0 100% 0.481 s

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

- Class Tests Errors Failures Skipped Success Rate Time
Pig Latin Translator 25 0 0 0 100% 0.095 s
Words Matcher 12 0 0 0 100% 0.049 s
Word Translator 23 0 0 0 100% 0.052 s
Word Annotation 20 0 0 0 100% 0.219 s

lv.id.jc.piglatin

- Class Tests Errors Failures Skipped Success Rate Time
LoadContextTest 1 0 0 0 100% 2.175 s

lv.id.jc.piglatin.service

- Class Tests Errors Failures Skipped Success Rate Time
TranslationCountEndpointSpec 3 0 0 0 100% 0.028 s

lv.id.jc.piglatin.actuator

- Class Tests Errors Failures Skipped Success Rate Time
StatusCodeSupplierSpec 2 0 0 0 100% 0.047 s
HealthFunctionSpec 2 0 0 0 100% 0.020 s

lv.id.jc.piglatin.controller

- Class Tests Errors Failures Skipped Success Rate Time
PigLatinControllerSpec 3 0 0 0 100% 0.083 s
PigLatinControllerIT 6 0 0 0 100% 0.398 s

Test Cases

[Summary] [Package List] [Test Cases]

PigLatinControllerSpec

translate method with valid TranslationRequest 0.055 s
can't translate empty text 0.001 s
translate method when TranslationService throws exception 0.003 s

LoadContextTest

context loads 1.901 s

Pig Latin Translator

translate English phrase to Pig Latin Zero - Empty string 0.002 s
translate English phrase to Pig Latin One - Single character word 0.001 s
translate English phrase to Pig Latin Word beginning with A 0.001 s
translate English phrase to Pig Latin Word beginning with E 0 s
translate English phrase to Pig Latin Word beginning with I 0.001 s
translate English phrase to Pig Latin Word beginning with O 0.001 s
translate English phrase to Pig Latin Word beginning with U 0 s
translate English phrase to Pig Latin Word beginning with vowel and followed by qu 0 s
translate English phrase to Pig Latin Word beginning with P 0.001 s
translate English phrase to Pig Latin Word beginning with K 0 s
translate English phrase to Pig Latin Word beginning with X 0 s
translate English phrase to Pig Latin Word beginning with Q without a following U 0.001 s
translate English phrase to Pig Latin Ch treated like a consonant at the beginning of a word 0 s
translate English phrase to Pig Latin Qu treated like a consonant at the beginning of a word 0 s
translate English phrase to Pig Latin Qu and a preceding consonant treated like a consonant at the beginning of a word 0.001 s
translate English phrase to Pig Latin Th treated like a consonant at the beginning of a word 0.001 s
translate English phrase to Pig Latin Thr treated like a consonant at the beginning of a word 0 s
translate English phrase to Pig Latin Sch treated like a consonant at the beginning of a word 0 s
translate English phrase to Pig Latin Yt treated like a vowel at the beginning of a word 0.001 s
translate English phrase to Pig Latin Xr treated like a vowel at the beginning of a word 0 s
translate English phrase to Pig Latin Y treated like a consonant at the beginning of a word 0.001 s
translate English phrase to Pig Latin Y treated like a vowel at the end of a consonant cluster 0.001 s
translate English phrase to Pig Latin Y as second letter in two letter word 0.001 s
translate English phrase to Pig Latin A whole phrase 0 s
translate English phrase to Pig Latin 0.039 s

PigLatinControllerIT

translate method with valid TranslationRequest 0.343 s
can't translate '#untranslatableExpression' can't translate '' 0.007 s
can't translate '#untranslatableExpression' can't translate ' ' 0.002 s
can't translate '#untranslatableExpression' can't translate '4572' 0.002 s
can't translate '#untranslatableExpression' can't translate '%$#@&' 0.002 s
can't translate '#untranslatableExpression' 0.016 s

Words Matcher

match words in #description match words in Empty string 0.006 s
match words in #description match words in Single character word 0.002 s
match words in #description match words in Phrase with multiple words 0 s
match words in #description match words in Phrase with numbers 0.001 s
match words in #description match words in Phrase with special characters 0 s
match words in #description match words in Phrase with punctuation 0 s
match words in #description match words in Phrase with apostrophe 0.001 s
match words in #description match words in Phrase with contraction 0 s
match words in #description match words in Phrase with single quotes 0 s
match words in #description match words in Phrase with double quotes 0.001 s
match words in #description match words in Complex phrase 0 s
match words in #description 0.012 s

Word Translator

test apply method with word #word - #description test apply method with word a - One - Single character word 0.001 s
test apply method with word #word - #description test apply method with word apple - Word beginning with A 0 s
test apply method with word #word - #description test apply method with word ear - Word beginning with E 0.001 s
test apply method with word #word - #description test apply method with word igloo - Word beginning with I 0 s
test apply method with word #word - #description test apply method with word object - Word beginning with O 0 s
test apply method with word #word - #description test apply method with word under - Word beginning with U 0.001 s
test apply method with word #word - #description test apply method with word equal - Word beginning with vowel and followed by qu 0.001 s
test apply method with word #word - #description test apply method with word pig - Word beginning with P 0 s
test apply method with word #word - #description test apply method with word koala - Word beginning with K 0 s
test apply method with word #word - #description test apply method with word xenon - Word beginning with X 0.001 s
test apply method with word #word - #description test apply method with word qat - Word beginning with Q without a following U 0 s
test apply method with word #word - #description test apply method with word chair - Ch treated like a consonant at the beginning of a word 0.001 s
test apply method with word #word - #description test apply method with word queen - Qu treated like a consonant at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word square - Qu and a preceding consonant treated like a consonant at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word therapy - Th treated like a consonant at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word thrush - Thr treated like a consonant at the beginning of a word 0.001 s
test apply method with word #word - #description test apply method with word school - Sch treated like a consonant at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word yttria - Yt treated like a vowel at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word xray - Xr treated like a vowel at the beginning of a word 0 s
test apply method with word #word - #description test apply method with word yellow - Y treated like a consonant at the beginning of a word 0.001 s
test apply method with word #word - #description test apply method with word rhythm - Y treated like a vowel at the end of a consonant cluster 0 s
test apply method with word #word - #description test apply method with word my - Y as second letter in two letter word 0 s
test apply method with word #word - #description 0.009 s

TranslationCountEndpointSpec

should return count 0.004 s
should set count 0.001 s
should reset count 0.001 s

StatusCodeSupplierSpec

should return status code when getAsInt is called 0.031 s
should throw RuntimeException when IOException occurs 0.002 s

HealthFunctionSpec

should return UP when HTTP status code is 200 0.003 s
should return DOWN when HTTP status code is not 200 0.002 s

Word Annotation

has violations for '#input' (#description) has violations for '' (Empty string) 0.032 s
has violations for '#input' (#description) has violations for ' ' (Whitespace) 0.002 s
has violations for '#input' (#description) has violations for ' ' (Tab) 0.002 s
has violations for '#input' (#description) has violations for 'null' (Null word) 0.003 s
has violations for '#input' (#description) has violations for 'apple123' (Word with numbers) 0.002 s
has violations for '#input' (#description) has violations for 'apple!' (Word with special characters) 0.002 s
has violations for '#input' (#description) has violations for 'apple pie' (Word with whitespace) 0.002 s
has violations for '#input' (#description) has violations for 'apple-' (Word with hyphen) 0.002 s
has violations for '#input' (#description) has violations for 'apple_' (Word with underscore) 0.002 s
has violations for '#input' (#description) has violations for 'apple.' (Word with dot) 0.002 s
has violations for '#input' (#description) has violations for 'apple'' (Word with trailing apostrophe) 0.001 s
has violations for '#input' (#description) has violations for ''apple' (Word with leading apostrophe) 0.001 s
has violations for '#input' (#description) has violations for 'ap'pl'e' (Word with two apostrophes) 0.002 s
has violations for '#input' (#description) 0.080 s
no violations for #word no violations for apple 0.003 s
no violations for #word no violations for can't 0.002 s
no violations for #word no violations for äpple 0.002 s
no violations for #word no violations for ApPlE 0.001 s
no violations for #word no violations for a 0.002 s
no violations for #word 0.018 s