Is UnitSpec still available in Grails-2.4.4 - grails

Does anyone know if Unit Spec is still available on Grails-2.4.4? https://code.google.com/p/spock/source/browse/branches/groovy-1.7/spock-grails-support/src/main/groovy/grails/plugin/spock/UnitSpec.groovy?r=1149
I wanted to use UnitSpec's loadCodec() method from within a Spec class of mine, but UnitSpec doesn't seem to be available anymore, is there a workaround for this?
Thanks!

#dmahapatro, I didn't really know there was a mockCodec method.
Thanks to your tip and this post (Grails unit testing custom codec using Spock), I figured out how to use GrailsUnitTestMixin#mockCodec.
Thanks!

Related

Implementing xoai 4.x

I would like to implement a standalone oai-pmh version 2 data provider server using xoai 4.1.x without DSpace.
Can anyone direct me to any documentation for doing this or to a reference implementation?
Thanks
David
Its posible, but you will need a repository to manage the contents that oai serve.
You should check https://github.com/lyncode/xoai/wiki for help and https://github.com/lyncode/xoai to get the code.

Is it possible to read out the console.logs if i compiled my sencha-app to an ios-simulator?

I compiled my sencha-app through "sencha app package.." to an iphone-simulator.
Now i wanna look into my console.logs, so that i can verify my client-programm behaviour. I opened the system-protocol but i can't find my logs. Maybe somebody can help me out here?
tia && regards
noircc
there are a couple of options for this. The easiest is to use the remote inspector from Webkit Nightly. All the steps required are explained here:
http://webdesign.tutsplus.com/tutorials/workflow-tutorials/quick-tip-using-web-inspector-to-debug-mobile-safari/

Why is edoc unable to discover callbacks?

For some time we are able to declare behaviour callback using -callback attribute instead of behaviour_info/1 (which in my opinion is more convenient). But, the edoc application seems to be unable to discover such attribute. Still, release notes suggested, that this issue was already fixed in version 0.7.10 (http://www.erlang.org/doc/apps/edoc/notes.html). Did anyone encounter similar problem and was able to overcome it?
I think the open issue 3211 is talking about a similar issue.
There is a comment mentioning that commit 715bb80 enables edocs to identify callbacks, but I am also seeing this functionality in the brod project -- hexdocs.

MarkLogic XQuery xdmp:save/xdmp:quote indent-untyped option

Has anyone used this option before? I do not believe that this feature is working how it should be as I am failing to compile my code once I have inserted this as a option.
The problem I am trying to achive is to pretty print a document which has no namespace, due to the document not having a namespace I can not validate it against a schema therefore the option does not work. The option seems to be the correct way to go about this reading the documentation but I can not seem to get it to work.
Would be good to hear if anyone else has had issues with this option aswell?
Thanks.
Which version of the Server are you using?
Default serialization changed for indenting of typed and untyped XML in earlier versions of 4.2 (around 4.2-3).
http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/relnotes/chap4.xml%2340996

What is the proper way to create an apache-style log file using Erlang?

I think there is a specific module for this but can no longer figure out where I saw it ...
Maybe you're interested in disk_log or error_logger?

Resources