Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Monday, December 22, 2014

Configure IntelliJ


Remove some files from the projet view
File -> Settings -> File Types :
Ignore files and folders

...;.surefire-*;*.iml;.idea;.gitignore


Plugins
CheckStyle-IDEA
String Manipulation
Copy on steroids - http://plugins.jetbrains.com/plugin/7198
Markdown
Lombok

Sunday, November 2, 2014

HTML report for unit tests

# Run tests and generate .xml reports
mvn clean test

# Convert .xml reports into .html report, but without the CSS or images
mvn surefire-report:report-only

# Put the CSS and images where they need to be without the rest of the
# time-consuming stuff
mvn site -DgenerateReports=false

Go to target/site/surefire-report.html for the report.

Monday, September 22, 2014

Java - OWASP ESAPI

The standard library for security is ESAPI from the OWASP fondation.

The OWASP Enterprise Security API GitHub repositories:

https://github.com/ESAPI/esapi-java
https://github.com/ESAPI/esapi-java-legacy

Friday, April 18, 2014

Maven - Start a new java project

mvn archetyp:generate
Group, ArtefactId, Version

mvn eclipse:eclipse

Then in Eclipse, you can import the Project:
File > Import > Maven > Existing Maven Projects > Next > Browse to the Root Directory > Select the pom.xml > Finish

Or you can create the Maven project directly in Eclipse:
File > New > Other... > Maven > Maven Project > Next > Next :
Group, ArtefactId, Version