Took me a while to define JMock expectations which verifies that a argument of mocked method has a defined set of properties with values.
Here my JMock based JUnit test:
Is there no better way to do this in JMock?
Sonntag, 31. Juli 2011
Donnerstag, 16. Juni 2011
Top 10 Software Engineering Books – Must Read
Today I gave a lighting talk at SEITENBAU, about my favorite top ten software engineering books. Here my top ten list of books, which every developer should read:
#1 - Andrew Hunt, David Thomas - The Pragmatic Programmer - From Journeyman to Master
#2 - Erich Gamma, Richard Helm, Ralph E. Johnson, John Vlissides - Design Patterns
#3 - Martin Fowler - Refactoring -Improving the Design of Existing Code
#4 - Eric Evans - Domain Driven Design
#5 - Kent Beck - Test Driven Development by Example
#6 - Alistair Cockburn - Writing Effective Use Cases
#7 - Scott Berkun - The Art of Project Management
#8 - Martin Fowler - Patterns of Enterprise Application Architecture
#9 - Joshua Bloch - Effective Java
#10 - Gerard Meszaros - xUnit Test Patterns
I think there are more books you should read as a professional developer, but this list is at the moment my top ten list of books I think should have read.
What are your favorite software engineering books? Send me comments or write me via Twitter.
Links
#1 - Andrew Hunt, David Thomas - The Pragmatic Programmer - From Journeyman to Master
#2 - Erich Gamma, Richard Helm, Ralph E. Johnson, John Vlissides - Design Patterns
#3 - Martin Fowler - Refactoring -Improving the Design of Existing Code
#4 - Eric Evans - Domain Driven Design
#5 - Kent Beck - Test Driven Development by Example
#6 - Alistair Cockburn - Writing Effective Use Cases
#7 - Scott Berkun - The Art of Project Management
#8 - Martin Fowler - Patterns of Enterprise Application Architecture
#9 - Joshua Bloch - Effective Java
#10 - Gerard Meszaros - xUnit Test Patterns
I think there are more books you should read as a professional developer, but this list is at the moment my top ten list of books I think should have read.
Top10- Software Engineering Books
View more presentations from Christian Baranowski
What are your favorite software engineering books? Send me comments or write me via Twitter.
Links
- Stackoverflow recommended books for software engineering- http://stackoverflow.com/questions/131571/recommended-books-for-software-engineering
- Top 100 Best Software Engineering Books- http://knol.google.com/k/top-100-best-software-engineering-books-ever
Sonntag, 5. Juni 2011
Sikuli – GUI Test Automation with Java Robot API and Images
The Sikuli project provides a simple tool for automate and test graphical user interfaces (GUI) using images (screenshots). The idea is to find an element on the screen by a screenshot and not by XPath or ID. The tool can be used for all GUIs also web applications. It’s a nice idea below you can see a simple example.
The SIKULI project is based on the Java VM and also provides an API for writing the automation in Java here a JUnit sample test.
For real world web testing it is not the right tool I think, because it depends on the style of the elements. When the button style changed you need a new screenshot of the button. But it is a nice tool for simple automation tasks. Have also a look at screen casts on the project homepage.
Links:
- Project Home - http://sikuli.org/
- How to use Sikuli Script in your JAVA programs - http://sikuli.org/docx/faq/030-java-dev.html
The SIKULI project is based on the Java VM and also provides an API for writing the automation in Java here a JUnit sample test.
For real world web testing it is not the right tool I think, because it depends on the style of the elements. When the button style changed you need a new screenshot of the button. But it is a nice tool for simple automation tasks. Have also a look at screen casts on the project homepage.
Links:
- Project Home - http://sikuli.org/
- How to use Sikuli Script in your JAVA programs - http://sikuli.org/docx/faq/030-java-dev.html
Convert a simple CSV File with Groovy, Java, Scala, awk, Ruby, Python, PHP or Bash?
Change Log:
Which is the best programming language for converting a simple CSV into another format?
First I blogged three Java VM based solutions written in Groovy, Java and Scala to convert a simple CSV file into another format. Rainer sends me the Java based solution, yesterday Axel Knauf sends an awk based solution, Niko sends Ruby based solution, Hendrik sends a Python based solution, Sebastian sends me a PHP implementation and Julien sends a Bash version. Now there are a Groovy, Java, Scala, awk, Ruby, Python, PHP and Bash implementation.
Now here again a complete overview of the different implementations:
The Groovy Implementation:
The Java Implementation:
The Scala Implementation:
Here the shell command and awk script:
The pure Ruby Implementation:
The Python Implementation:
The pure PHP Implementation:
The Bash Implementation:
I'm curious whether there are other implementation proposals (Clojure, Perl, PHP, …), if you have one you could send me the script via Twitter or leave a comment here…
I am also curious which implementation Groovy, Java, Scala, awk or Ruby you like and why? I have create voting here:
Thanks Rainer, Axel Knauf, Niko Dittmann, Hendrik Heimbuerger S.Barthenheier and Julien Guitton for the Java, awk, Ruby Python, PHP and Bash implementation.
Links:
- 05.06.2011 1:30 pm - Initial created Post with Groovy, Java, Scala, awk, Ruby, Python Implementation
- 05.06.2011 4:00 pm - Add PHP implementation and update voting (now you can vote for PHP).
- 06.06.2011 4:00 pm - Add Bash implementation and update voting (now you can also vote for Bash)
Which is the best programming language for converting a simple CSV into another format?
First I blogged three Java VM based solutions written in Groovy, Java and Scala to convert a simple CSV file into another format. Rainer sends me the Java based solution, yesterday Axel Knauf sends an awk based solution, Niko sends Ruby based solution, Hendrik sends a Python based solution, Sebastian sends me a PHP implementation and Julien sends a Bash version. Now there are a Groovy, Java, Scala, awk, Ruby, Python, PHP and Bash implementation.
Now here again a complete overview of the different implementations:
The Groovy Implementation:
The Java Implementation:
The Scala Implementation:
Here the shell command and awk script:
The pure Ruby Implementation:
The Python Implementation:
The pure PHP Implementation:
The Bash Implementation:
I'm curious whether there are other implementation proposals (Clojure, Perl, PHP, …), if you have one you could send me the script via Twitter or leave a comment here…
I am also curious which implementation Groovy, Java, Scala, awk or Ruby you like and why? I have create voting here:
Thanks Rainer, Axel Knauf, Niko Dittmann, Hendrik Heimbuerger S.Barthenheier and Julien Guitton for the Java, awk, Ruby Python, PHP and Bash implementation.
Links:
- Java (Rainer) - https://gist.github.com/1006757
- awk (Axel Knauf) - https://twitter.com/#!/kopfkind/status/77288701725638656
- Ruby (Niko) - https://gist.github.com/1008877
- Python (Hendrik) - https://gist.github.com/1008881
- PHP (Sebastian) - https://gist.github.com/1008966
- Bash (Julien) - https://gist.github.com/1009420
- old blog post: Convert a CSV File with awk - http://goo.gl/U7onj
- old blog post: Convert a CSV File in Groovy, Java or Scala? - http://goo.gl/AAE17
Convert a CSV File with awk
Yesterday I post three Java VM based solutions written in Groovy, Java and Scala to convert a simple CSV file into another format. Today kopfkind sends me via Twitter a awk based solution.
Here the shell command and awk script to convert the CSV file:
Thanks a lot @kopfkind for this simple solution. I'm curious whether there are other implementation proposals (Python, Clojure, Perl, Bash, PHP, …), if you have one you could send me the solution via Twitter or leave a comment here.
I am also curious which implementation Groovy, Java, Scala or awk you like and why?
See also: Convert a CSV File in Groovy, Java or Scala?
Here the shell command and awk script to convert the CSV file:
Thanks a lot @kopfkind for this simple solution. I'm curious whether there are other implementation proposals (Python, Clojure, Perl, Bash, PHP, …), if you have one you could send me the solution via Twitter or leave a comment here.
I am also curious which implementation Groovy, Java, Scala or awk you like and why?
See also: Convert a CSV File in Groovy, Java or Scala?
Abonnieren
Posts (Atom)
