Questions tagged as 'demoiselle'

2
answers

Demoiselle JUnit - NullPointerException

When running a unit test with br.gov.frameworkdemoiselle.junit.DemoiselleRunner , the following error is occurring at the end of the test run: java.lang.NullPointerException at br.gov.frameworkdemoiselle.internal.bootstrap.SeBootstr...
asked by 22.02.2015 / 16:18
4
answers

Intercept Exception

I'm using Demoiselle in my application, but it does not come out very well in one respect. In an association between two or more entities, deleting throws an exception. With the exception handling available in Demoiselle, I've created a method t...
asked by 23.03.2015 / 12:56
2
answers

Mock of static method with Demoiselle and PowerMock / Mockito

I'm trying to mock a static method, but PowerMock requires the use of a specific Runner (PowerMockRunner) for mock static to work! And for Demoiselle to work you have to start Weld with DemoiselleRunner, but the JUnit API only accepts a singl...
asked by 11.02.2014 / 14:34
1
answer

How to simulate a user logged into an application with Demoiselle 2.4.2?

I have a Demoiselle 2.4.2 application already running that needs to use SecurityContext to get the User currently logged in and make some decisions. The time now is to write the unit tests using JUnit 4 for this application (th...
asked by 25.02.2016 / 16:13
2
answers

Request parameter accent on JSF page

I have a JSF page that receives as a parameter, in the URL, the error message to be displayed. Ex: http://example.com/application_error.jsf?exception=Não+permitido On the page, the parameter is displayed as follows: #{param['exceptio...
asked by 11.12.2013 / 17:23
1
answer

Demoiselle @Transactional Usage

I'm having trouble using the @Transactional annotation of Demoiselle. When I was controlling the transaction "on hand" with a% injected%, it was all right. But now using EntityManager , the record is inserted into the database, but I get...
asked by 23.04.2015 / 13:03
1
answer

Demoiselle 2.4.0: Error executing test with JUnit

I have a project built from the Demoiselle archetype for Maven . The generated application is the one that exemplifies the Demoiselle, containing a register of bookmarks . The developer who generated zero revision of the application is no...
asked by 18.12.2014 / 14:41
0
answers

StackOverflowError - Infinite loop when deploying ear with ejb and demoiselle

When deploying an EAR with an EJB that depends on demoiselle-core , a StackOverflowError exception is thrown. When you try to create a ResourceBundle (ResourceBundleProducer.createNamed (ResourceBundleProducer.java:77)), the Beans class (...
asked by 29.01.2015 / 13:09
1
answer

Demoiselle on OpenJDK

I heard that Demoiselle does not work with OpenJDK. Is it true? Even for OpenJDK 7? Are there plans or work in progress so that Demoiselle can be used with OpenJDK, at least from version 7 onwards? Note: As of Java 7, OpenJDK is the ref...
asked by 24.03.2015 / 22:15
2
answers

Capture via ExceptionHandler

I'm trying to capture a javax.validation.ValidationException in my MB to play on an alert later. I tried with the three examples below independent but nothing returned. Should I enter any more code? I use version 2.5.0. @ViewController...
asked by 22.12.2015 / 13:26