spanishcoder.com
Spanish Coder: Como no perder los datos antes de guardar un formulario JSF con AJAX
http://www.spanishcoder.com/2011/09/como-no-perder-los-datos-antes-de_06.html
Martes, 6 de septiembre de 2011. Como no perder los datos antes de guardar un formulario JSF con AJAX. En un post anterior explicaba como no perder los datos antes de guardar un formulario JSF. Finalmente nos queda implementar un mecanismo para saber si nuestro objeto java asociado al formulario ha sido modificado o no. Para ello necesitamos guardar el estado de nuestro objeto cuando se carga el formulario por primera vez y verificar cada vez que se necesite (se llamará desde la página jsf mediante r...
spanishcoder.com
Spanish Coder: septiembre 2011
http://www.spanishcoder.com/2011_09_01_archive.html
Domingo, 18 de septiembre de 2011. Encapsula detalles de implementación en Java. La encapsulación en términos de orientación a objetos (OO) consiste en diseñar nuestras clases Java de tal forma que no se muestren los detalles de implementación de dicha clase. La encapsulación ayuda a gestionar la complejidad de una clase, no. Public class Person { public int age; } class TestBadEncapsulation { private void testPerson() { Person p = new Person(); p.age = -10; } }. Podríamos hacernos la siguiente pregunta:.
jivimberg.github.io
Using PowerMock + TestNG to Mock a Static Class - What I learned today
http://jivimberg.github.io/blog/2016/04/03/using-powermock-plus-testng-to-mock-a-static-class
Using PowerMock TestNG to Mock a Static Class. April 3, 2016. This week I needed to test a class that depended on a method from an static class. I saw we were using PowerMock. And thought to myself:. Well this sounds pretty common, I bet it’s easy to accomplish. But of course I ran into half a dozen issues before I was able to make it work. Here’s my two cents to make your experience easier than mine. Let’s start with the ingredients. To mock static methods you’ll need a couple of libraries:. Note that y...
knorrium.info
Felipe Knorr Kuhn » Knorrium
http://knorrium.info/author/admin
Software testing and random insights. Why displaying proper error messages does matter. February 18th, 2013. Jakob Nielsen wrote guidelines on error messages. A long time ago, yet some products still fail to see value in displaying user friendly error messages, which not only communicate what is really going on but also educates the user on how to fix the problem. Last night I was trying to create an account on Spotify using their iOS app and I was presented this error:. Here are some ideas:. I’m w...
wilsondev.blogspot.com
wilson.dev();: Modelando código testável
http://wilsondev.blogspot.com/2008/10/modelando-cdigo-testvel.html
Tópicos em desenvolvimento de software. Saturday, October 18, 2008. Em muitos casos, o código de um determinado teste unitário é mais extenso e/ou complexo que o código que está sendo testado. Infelizmente só nos damos conta disso quando começamos a bater cabeça. Como os projetos do mundo real nunca são tão simplórios quanto os exemplos Hello World like. Se o código não atende a este requisito, refatore-o ou esqueça os testes unitários. Classes faz-tudo com milhares de linhas contendo métodos faz-tudo co...
bugfeature.blogspot.com
bug/feature: 03/2008
http://bugfeature.blogspot.com/2008_03_01_archive.html
March 21, 2008. Amazing art/tech: animatic sculptures. Go see this genius. In action, building impossible animal-like sculptures. So we got animatic inputs from military-industry (see post. Following last post: the nature of testing. People asked me what I meant about the all-terrain robot. Testing requires certain cruelty. Look how the tester kicks the robot on 00:35. We are required to do the same thing with the software we test: bring it to the limit, then push and observe if it falls gracefully, cras...
gebish.org
The Book Of Geb
http://www.gebish.org/manual/snapshot
The Book Of Geb. Luke Daley, Marcin Erdmann, Erik Pragt. Very groovy browser automation web testing, screen scraping and more. 11 The browser automation technology. 12 The Page Object pattern. 13 The jQuery-ish navigator API. 142 Scripting with Page Objects. 15 Installation and usage. 221 The base URL. 25 Page change listening. 26 Working with multiple tabs and windows. 261 Already opened windows. 262 Newly opened windows. 27 Quitting the browser. 3 The WebDriver implementation. 4 Interacting with content.