Commit 86d209fc7533c8c33234abe1eaac8a0755dfa854

Authored by Emerson Oliveira
1 parent ebd38150
Exists in master

IN PROGRESS - issue FWK-120: Testes da extensão JSF (segurança +

mensagem + exceção) 
https://demoiselle.atlassian.net/browse/FWK-120
Remoção de classe desnecessária
impl/extension/jsf/src/test/java/exception/handler/configuration/ExceptionHandlerConfigFilter.java
... ... @@ -1,99 +0,0 @@
1   -/*
2   - * Demoiselle Framework
3   - * Copyright (C) 2010 SERPRO
4   - * ----------------------------------------------------------------------------
5   - * This file is part of Demoiselle Framework.
6   - *
7   - * Demoiselle Framework is free software; you can redistribute it and/or
8   - * modify it under the terms of the GNU Lesser General Public License version 3
9   - * as published by the Free Software Foundation.
10   - *
11   - * This program is distributed in the hope that it will be useful,
12   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   - * GNU General Public License for more details.
15   - *
16   - * You should have received a copy of the GNU Lesser General Public License version 3
17   - * along with this program; if not, see <http://www.gnu.org/licenses/>
18   - * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19   - * Fifth Floor, Boston, MA 02110-1301, USA.
20   - * ----------------------------------------------------------------------------
21   - * Este arquivo é parte do Framework Demoiselle.
22   - *
23   - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24   - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25   - * do Software Livre (FSF).
26   - *
27   - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28   - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29   - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30   - * para maiores detalhes.
31   - *
32   - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33   - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/>
34   - * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35   - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36   - */
37   -package exception.handler.configuration;
38   -
39   -import java.io.IOException;
40   -import java.util.Iterator;
41   -import java.util.List;
42   -
43   -import javax.faces.application.FacesMessage;
44   -import javax.faces.context.FacesContext;
45   -import javax.servlet.Filter;
46   -import javax.servlet.FilterChain;
47   -import javax.servlet.FilterConfig;
48   -import javax.servlet.ServletException;
49   -import javax.servlet.ServletRequest;
50   -import javax.servlet.ServletResponse;
51   -import javax.servlet.http.HttpServlet;
52   -import javax.servlet.http.HttpServletResponse;
53   -
54   -import br.gov.frameworkdemoiselle.util.Beans;
55   -
56   -public class ExceptionHandlerConfigFilter implements Filter {
57   -
58   - private static final long serialVersionUID = 1L;
59   -
60   - private List<FacesMessage> facesMessage;
61   -
62   - @Override
63   - public void init(FilterConfig filterConfig) throws ServletException {
64   - }
65   -
66   - @Override
67   - public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
68   - ServletException {
69   -
70   -// try {
71   -
72   - chain.doFilter(request, response);
73   -
74   -// String message = response.getContentType();
75   -// System.out.println("MESSAGE FILTER: " + message);
76   -
77   -// facesMessage = FacesContext.getCurrentInstance().getMessageList();
78   -
79   -// for(FacesMessage fm : FacesContext.getCurrentInstance().getMessageList()) {
80   -// System.out.println("Sumary: " + fm.getSummary());
81   -// System.out.println("Detail: " + fm.getDetail());
82   -//
83   -// if(fm.getSummary().equals("DummyException!")) {
84   -// ((HttpServletResponse)response).setStatus(200);
85   -// }else {
86   -// ((HttpServletResponse)response).setStatus(200);
87   -// }
88   -// }
89   -
90   -// }catch(Exception e) {
91   -// ((HttpServletResponse)response).setStatus(200);
92   -// }
93   - }
94   -
95   - @Override
96   - public void destroy() {
97   - }
98   -
99   -}