Archive

Archive for the ‘Groovy’ Category

From JUnit3 to Easyb

Luty 26th, 2010

In this post I would like to show you a simple class and its tests and what was the evolution since JUnit3 to easyb.

Read more...

Groovy, java

JavaExpress Issue 5 in English

Luty 20th, 2010

Grails and Groovy Christmas

Grudzień 26th, 2009

This Christmas we got great presents from Grails and Groovy teams.

Read more...

Grails, Groovy

Building Grails from scratch

Listopad 13th, 2009

If you need the latest possible version of Grails (not release) you can download a fresh build from Hudson or build it yourself. The second options is fairly easy.

  1. Clone the repository using git client. You can find the clone URL at http://github.com/grails/grails.
  2. In the mean time check that you've JDK 1.5+ and Ant installed.
  3. After the cloning is done go to grails/grails/ folder and run 'ant jar'. This will build the release.
  4. Set env variable GRAILS_HOME to your clone folder.
  5. In your Grails project (not the Grails sources) when you want to use your fresh build, go to application.properties and change app.grails.version to a new version. For example: app.grails.version = 1.2-SNAPSHOT

That's all. Your project should run now with your fresh build. More detailed information can be found here: http://www.grails.org/GrailsDevEnvironment

Grails, Groovy

Google Wave Robot – Gaelyk

Listopad 10th, 2009

I've found another Google Wave Robot tutorial. This one is based on Gaelyk, "a lightweight Groovy toolkit for Google App Engine Java."

Groovy

Google Wave Grails Plugin

Październik 28th, 2009

Not much time passed sinced Google Wave has been introduced to wider audience and there already is a Google Wave Grails plugin. David Trattnig prepared a great plugin that lets you embed waves in your app or do even more amazing thing - write Wave robots. See an example of a wave robot. If you add a sample robot to your wave you can ask it to execute a groovy code and return results :)

Grails, Groovy

Groovy Goodness

Wrzesień 8th, 2009

Hubert Klein Ikkink przestawia na swoim blogu ciekawą serię postów pod tytułem Groovy Goodness. W każdym poście przedstawia ciekawy "smaczek" z Groovy oraz jego użycie. Bardzo ciekawa seria umożliwiająca poznanie możliwości Grooviego. Polecam czytać razem z komentarzami, gdyż czasami inne osoby dopisują ciekawe przykłady.

[lang_en]Hubert Klein Ikkink presents an interesting series of posts at his blog called the Groovy Goodness (http://mrhaki.blogspot.com/search/label/Groovy:Goodness). The series presents the power of Groovy. It's an excellent way to learn something about Groovy.[/lang_en]

Groovy

Publikujemy WebService w Groovy

Lipiec 17th, 2009

Do tego zadania z pomocą przychodzi nam również GroovyWS.

Read more...

Groovy, WebServices

SoapUI i odpowiedzi w Groovy

Lipiec 17th, 2009

Do kompletu z wczorajszym wywołaniem WebService'u z Groovy poniżej mały przykład, jak w SoapUI odczytać parametry request'u i zasymulować bardziej skomplikowaną odpowiedź.

Read more...

Groovy, WebServices

Konsumpcja WebService’u w Groovy

Lipiec 16th, 2009
  1. Pobieramy sobie groovyws-standalone-0.5.0.jar.
  2. Piszemy skrypt, który wygląda mniej więcej tak:
import groovyx.net.ws.WSClient
 
// Tu wstawiamy nasz adres
def proxy = new WSClient("http://localhost:8088/calc?wsdl", this.class.classLoader)
proxy.initialize()
// Tu wstawiamy wywołanie naszej metody
def result = proxy.Add(1.0 as double, 2.0 as double)
println result

Gotowe :) Do testów użyłem WSDLa, którego znalazłem tutaj. Najłatwiej pobrać SoapUI, wczytać owego WSDLa, wygenerować MockService i możemy już się bawić w testowe wywołanie WebService'u. W samym SoapUI możemy też generować przykładowe odpowiedzi z wykorzystaniem, niespodzianka, Groovy :)

Groovy, WebServices