We're tired for manual checking javax.validation annotations against entity's persistent properties. For all of you who feel the same we bring itcrowd-domain-findbugs.
Blog
Wednesday 21 November 2012
Tuesday 6 November 2012
Tuesday 23 October 2012
POM Sorter 1.0.5 is out
We've repackaged the files to "pl.itcrowd", added icons and default sorting mode for "dependencies".
Tuesday 16 October 2012
Mocking FindBugs
In previous post on writing FindBugs plugin I've said it is very immune to testing. Since today it's different.
Organizing JCMA Workshop - dos and donts
We've recently organized and lead Java Coder's Modern Arsenal Workshop. It was our first such event. We've commited several mistakes and had some cool ideas, all making valuable lesson. We want to share our experience with you.
Monday 15 October 2012
Writing FindBugs plugin
Ever needed some custom checks in FindBugs? See how to write your own detectors.
Friday 5 October 2012
JSF Component must not be script
Recently we needed form to create JSF composite component that would bind custom Ajax event handler to a form. We simply made it output <script id="xxx">...</script>. And it was mistake!
@Observes inheritance
Weld-core:1.1.8.Final fixed important issue (WELD-1111) concerning inheritance of member-level metadata for generic types. Now we can have parametrized super classes with @Observes methods!
Monday 1 October 2012
Contest for new company page design
We are happy to announce that contest for new design of our company page has finished!
Tuesday 18 September 2012
POM Sorter 1.0.2 is out
This release let's you configure how each tag's contents will be sorted.
Downloads: http://plugins.intellij.net/plugin?pr=idea&pluginId=7084
Downloads: http://plugins.intellij.net/plugin?pr=idea&pluginId=7084
Tuesday 7 August 2012
POM Sorter IntelliJ Idea plugin
Do you like Rearranger plugin for IntelliJ Idea, the one that helps you sort members of Java classes? Don't you miss such great functionality for Maven project descriptor?
We've got something for you. The Pom Sorter plugin.
Monday 23 July 2012
Reliable mail delivery in Seam
If you need to send emails form your application then there is nice seam-mail, a CDI extension. However frequently you need to assure that some email gets delivered.
Let's consider registration process. User fills in their email and new password, the application should then send him mail with activation code. What if the mail server is currently down or for some other reason the mail cannot be delivered at the moment?
Monday 18 June 2012
Mock conversation
Mock-contexts-extension allows you to turn conversation and view scopes on for your Arquillian tests. However the Conversation implementation in Weld is so tightly bound to Weld that you need to create mock alternative for it.
Thursday 31 May 2012
seam3-persistence-framework 1.0.2 is out
We've fixed problems with DynEntityQuery not being refreshed when dynamic parameter value change.
Artifacts are available at: http://artifactory.it-crowd.com.pl/repo
Monday 28 May 2012
Mock FacesContext in Arquillian
Recently I wanted to test my backing beans for JSF views. Unfortunately the EntityQuery (from seam3-persistence-framework) is very tightly bound to JSF api, particularly it depends on FacesContext.getCurrentInstance().getELContext(). The problem is that the tests are not associated with JSF requests, so FacesContext.getCurrentInstance() returns null.
I decided to extend mock-contexts-extension to help mocking FacesContext.
I decided to extend mock-contexts-extension to help mocking FacesContext.
Thursday 26 April 2012
Arquillian meets JRebel
Writing tests with Arquillian is so cool. Our tests are run in container, we can inject various artifacts like EJBs, JMS queues, CDI beans and more into our tests.
But the turnaround for big deployments is too big. Even for smaller ones, if you for example use Seam3 or Hibernate it takes some seconds to redeploy. And those seconds add up.
But I've got good news for you!
But the turnaround for big deployments is too big. Even for smaller ones, if you for example use Seam3 or Hibernate it takes some seconds to redeploy. And those seconds add up.
But I've got good news for you!
Thursday 19 April 2012
AS7 Seam2 LoggingFilter
Seam2 allows us to add user name to each server log entry triggered by that user. This is described id "Identity Logging" chapter. We only need to enable logging-filter in components.xml and add %X{username} to log pattern.
But what if we want more, like IP ?
But what if we want more, like IP ?
Mock contexts for Arquillian
Do you have @ViewScoped or @ConversationScoped annotated beans that you want to test with Arquillian?
Do you get "WELD-001303 No active contexts for scope type javax.enterprise.context.ConversationScoped"?
Well now you get mock-contexts-extension to the rescue.
Do you get "WELD-001303 No active contexts for scope type javax.enterprise.context.ConversationScoped"?
Well now you get mock-contexts-extension to the rescue.
Wednesday 14 March 2012
CDK Guide - Writing schedule component
The goal
There is a lot of good introductory tutorials on writing JSF components based on RichFaces and using CDK. However they cover very simple cases and developers have hard times figuring out how to tackle some more advanced scenarios which are easily achievable in RichFaces.Tuesday 28 February 2012
Seam3-persistence-framework comes to town
Seam2 had great "framework-in-framework" set of classes to speed up CRUD development. I'm talking about EntityHome
and EntityQuery.
If you miss that stuff a lot in Seam3, don't you worry, cause IT Crowd has migrated EntityHomes and such
successfully to seam3 and we use
it in production.
Subscribe to:
Posts (Atom)