| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AcaoTeste |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2008 WebPhotos | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package net.sf.webphotos.action; | |
| 17 | ||
| 18 | import java.awt.event.ActionEvent; | |
| 19 | import javax.swing.AbstractAction; | |
| 20 | import net.sf.webphotos.Album; | |
| 21 | import net.sf.webphotos.util.Util; | |
| 22 | ||
| 23 | /** | |
| 24 | * Esta classe não parece estar concluída. Efetua um teste de saída em XML e | |
| 25 | * outro teste de saída com String. Através dos métodos da classe Album, toXML() | |
| 26 | * e toString(), os métodos dessa classe apenas criam um objeto Album para | |
| 27 | * receber os dados do Album, e imprimem no formato desejado. Não possui dados | |
| 28 | * atributos e um de seus métodos não apresenta utilizações. Não é uma classe | |
| 29 | * viável. | |
| 30 | */ | |
| 31 | public class AcaoTeste extends AbstractAction { | |
| 32 | ||
| 33 | /** | |
| 34 | * | |
| 35 | */ | |
| 36 | private static final long serialVersionUID = -2599435233748701194L; | |
| 37 | ||
| 38 | /** | |
| 39 | * Contrutor da classe. Inicialmente vazio, pois a classe não possui | |
| 40 | * atributos. | |
| 41 | */ | |
| 42 | 0 | public AcaoTeste() { |
| 43 | 0 | } |
| 44 | ||
| 45 | /** | |
| 46 | * Instancia um objeto Album para receber os dados do albúm e faz um print | |
| 47 | * no formato XML, através da função | |
| 48 | * {@link net.sf.webphotos.Album#toXML() toXML()} localizada em | |
| 49 | * {@link net.sf.webphotos.Album}. | |
| 50 | * | |
| 51 | * @param e Evento da ação de teste. | |
| 52 | */ | |
| 53 | @Override | |
| 54 | public void actionPerformed(ActionEvent e) { | |
| 55 | //Util.out.println ("acao teste"); | |
| 56 | 0 | Album a = Album.getAlbum(); |
| 57 | 0 | Util.out.println(a.toXML()); |
| 58 | //CacheFTP.getControleFTP().toString(); | |
| 59 | //mostraAlbum(); | |
| 60 | //Util.out.println ("CacheFTP"); | |
| 61 | //CacheFTP.getControleFTP().descarregarArquivo(); | |
| 62 | //Util.out.println (CacheFTP.getControleFTP().toString()); | |
| 63 | 0 | } |
| 64 | ||
| 65 | /** | |
| 66 | * Instancia um objeto Album para receber os dados do albúm e faz um print | |
| 67 | * com uma String, através da função | |
| 68 | * {@link net.sf.webphotos.Album#toString() toString()} localizada em | |
| 69 | * {@link net.sf.webphotos.Album}. | |
| 70 | */ | |
| 71 | public void mostraAlbum() { | |
| 72 | 0 | Album a = Album.getAlbum(); |
| 73 | 0 | Util.out.println("Album:" + a.toString()); |
| 74 | 0 | } |
| 75 | } |