Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: create tests for BubbleSort #22

Closed
wants to merge 1 commit into from

Conversation

rodrigomaria
Copy link

Create tests for BubbleSort Java class.

@rodrigoprestesmachado
Copy link
Owner

Olá, você sabe dizer o motivo que o build não está passando?

@rodrigomaria
Copy link
Author

Olá, você sabe dizer o motivo que o build não está passando?

Sim, alguns erros estão sendo lançados durante na etapa Build with Maven, conforme listado abaixo:

[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar (575 kB at 1.8 MB/s)
[INFO] There are 24 errors reported by Checkstyle 8.29 with com/github/ngeor/checkstyle.xml ruleset.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[1] (misc) NewlineAtEndOfFile: File does not end with a newline.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[7] (imports) ImportOrder: Wrong order for 'org.junit.jupiter.api.Test' import.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[9] (javadoc) MissingJavadocType: Missing a Javadoc comment.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[10,16] (design) VisibilityModifier: Variable 'bubbleSort' must be private and have accessor methods.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[11] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[14,24] (whitespace) NoWhitespaceAfter: '{' is followed by whitespace.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[14,26] (coding) MagicNumber: '9' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[14,29] (coding) MagicNumber: '-3' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[14,33] (coding) MagicNumber: '5' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[15,31] (whitespace) NoWhitespaceAfter: '{' is followed by whitespace.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[15,33] (coding) MagicNumber: '-3' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[15,43] (coding) MagicNumber: '5' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[15,46] (coding) MagicNumber: '9' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[16] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[17] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[23,24] (whitespace) NoWhitespaceAfter: '{' is followed by whitespace.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[23,26] (coding) MagicNumber: '13' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[24,31] (whitespace) NoWhitespaceAfter: '{' is followed by whitespace.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[24,33] (coding) MagicNumber: '13' is a magic number.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[25] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[26] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[32,24] (whitespace) NoWhitespaceAfter: '{' is followed by whitespace.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[33] (regexp) RegexpSingleline: Line has trailing spaces.
Error:  src/test/java/edu/ifrs/vvs/BubbleSortTest.java:[34] (regexp) RegexpSingleline: Line has trailing spaces.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.796 s
[INFO] Finished at: 2021-03-02T16:29:14Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (checkstyle) on project bubblesort: You have 24 Checkstyle violations. -> [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: Process completed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants