作業部屋の使い方を試しています。
(empty log message)
| @@ -1,114 +0,0 @@ | ||
| 1 | -/* | |
| 2 | - * Copyright (C) 2014 kgto. | |
| 3 | - * | |
| 4 | - * This library is free software; you can redistribute it and/or | |
| 5 | - * modify it under the terms of the GNU Lesser General Public | |
| 6 | - * License as published by the Free Software Foundation; either | |
| 7 | - * version 2.1 of the License, or (at your option) any later version. | |
| 8 | - * | |
| 9 | - * This library is distributed in the hope that it will be useful, | |
| 10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | - * Lesser General Public License for more details. | |
| 13 | - * | |
| 14 | - * You should have received a copy of the GNU Lesser General Public | |
| 15 | - * License along with this library; if not, write to the Free Software | |
| 16 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
| 17 | - * MA 02110-1301 USA | |
| 18 | - */ | |
| 19 | -package webScraping.core; | |
| 20 | - | |
| 21 | -import webScraping.core.DebugProcess; | |
| 22 | -import javax.swing.text.MutableAttributeSet; | |
| 23 | -import javax.swing.text.html.HTML; | |
| 24 | -import org.junit.AfterClass; | |
| 25 | -import org.junit.BeforeClass; | |
| 26 | -import org.junit.Test; | |
| 27 | -import static org.junit.Assert.*; | |
| 28 | - | |
| 29 | -import org.junit.AfterClass; | |
| 30 | -import org.junit.BeforeClass; | |
| 31 | -import org.junit.Test; | |
| 32 | -import static org.junit.Assert.*; | |
| 33 | - | |
| 34 | -/** | |
| 35 | - * | |
| 36 | - * @author kgto | |
| 37 | - */ | |
| 38 | - | |
| 39 | - | |
| 40 | -public class DebugProcessTest { | |
| 41 | - | |
| 42 | - public DebugProcessTest() { | |
| 43 | - } | |
| 44 | - | |
| 45 | - @BeforeClass | |
| 46 | - public static void setUpClass() { | |
| 47 | - } | |
| 48 | - | |
| 49 | - @AfterClass | |
| 50 | - public static void tearDownClass() { | |
| 51 | - } | |
| 52 | - | |
| 53 | - /** | |
| 54 | - * Test of debuglog_set method, of class DebugProcess. | |
| 55 | - */ | |
| 56 | - @Test | |
| 57 | - public void testDebuglog_set() { | |
| 58 | - System.out.println("debuglog_set"); | |
| 59 | - DebugProcess.debuglog_set(); | |
| 60 | - // TODO review the generated test code and remove the default call to fail. | |
| 61 | - fail("The test case is a prototype."); | |
| 62 | - } | |
| 63 | - | |
| 64 | - /** | |
| 65 | - * Test of debuglog_unset method, of class DebugProcess. | |
| 66 | - */ | |
| 67 | - @Test | |
| 68 | - public void testDebuglog_unset() { | |
| 69 | - System.out.println("debuglog_unset"); | |
| 70 | - DebugProcess.debuglog_unset(); | |
| 71 | - // TODO review the generated test code and remove the default call to fail. | |
| 72 | - fail("The test case is a prototype."); | |
| 73 | - } | |
| 74 | - | |
| 75 | - /** | |
| 76 | - * Test of htmlinfo method, of class DebugProcess. | |
| 77 | - */ | |
| 78 | - @Test | |
| 79 | - public void testHtmlinfo_4args() { | |
| 80 | - System.out.println("htmlinfo"); | |
| 81 | - HTML.Tag tag = null; | |
| 82 | - MutableAttributeSet attr = null; | |
| 83 | - String methodname = ""; | |
| 84 | - int count = 0; | |
| 85 | - DebugProcess.htmlinfo(tag, attr, methodname, count); | |
| 86 | - // TODO review the generated test code and remove the default call to fail. | |
| 87 | - fail("The test case is a prototype."); | |
| 88 | - } | |
| 89 | - | |
| 90 | - /** | |
| 91 | - * Test of htmlinfo method, of class DebugProcess. | |
| 92 | - */ | |
| 93 | - @Test | |
| 94 | - public void testHtmlinfo_String() { | |
| 95 | - System.out.println("htmlinfo"); | |
| 96 | - String str = ""; | |
| 97 | - DebugProcess.htmlinfo(str); | |
| 98 | - // TODO review the generated test code and remove the default call to fail. | |
| 99 | - fail("The test case is a prototype."); | |
| 100 | - } | |
| 101 | - | |
| 102 | - /** | |
| 103 | - * Test of htmlinfo method, of class DebugProcess. | |
| 104 | - */ | |
| 105 | - @Test | |
| 106 | - public void testHtmlinfo_charArr() { | |
| 107 | - System.out.println("htmlinfo"); | |
| 108 | - char[] data = null; | |
| 109 | - DebugProcess.htmlinfo(data); | |
| 110 | - // TODO review the generated test code and remove the default call to fail. | |
| 111 | - fail("The test case is a prototype."); | |
| 112 | - } | |
| 113 | - | |
| 114 | -} |
| @@ -1,49 +0,0 @@ | ||
| 1 | - | |
| 2 | -package webScraping.core; | |
| 3 | - | |
| 4 | -import webScraping.core.DebugProcess; | |
| 5 | -import static webScraping.core.DebugProcess.logger; | |
| 6 | -import java.util.logging.Formatter; | |
| 7 | -import java.util.logging.Handler; | |
| 8 | -import java.util.logging.Logger; | |
| 9 | - | |
| 10 | -/** | |
| 11 | - * | |
| 12 | - * @author kgto | |
| 13 | - */ | |
| 14 | - | |
| 15 | - | |
| 16 | -public class DebugProcessT01 { | |
| 17 | - | |
| 18 | - public static void main(String[] args) { | |
| 19 | - | |
| 20 | - DebugProcessT01 test = new DebugProcessT01(); | |
| 21 | - test.testdebuglog_set(); | |
| 22 | - | |
| 23 | - System.out.println("LoggerName : " + logger.getName()); | |
| 24 | - System.out.println("LoggerLevel : " + logger.getLevel()); | |
| 25 | - System.out.println("Parent : " + logger.getParent().getName()); | |
| 26 | - | |
| 27 | - Handler[] handlers = logger.getHandlers(); | |
| 28 | - for(int i = 0 ; i < handlers.length ; i++) { | |
| 29 | - System.out.println(handlers[i] + "'s Level: " + handlers[i].getLevel()); | |
| 30 | - | |
| 31 | - Formatter formatter = handlers[i].getFormatter(); | |
| 32 | - System.out.println("\tFormatter: " + formatter.toString()); | |
| 33 | - } | |
| 34 | - | |
| 35 | - test.testhtmlinfo(); | |
| 36 | - } | |
| 37 | - | |
| 38 | - public DebugProcessT01() { | |
| 39 | - } | |
| 40 | - | |
| 41 | - void testdebuglog_set() { | |
| 42 | - DebugProcess.debuglog_set(); | |
| 43 | - } | |
| 44 | - | |
| 45 | - void testhtmlinfo() { | |
| 46 | - DebugProcess.htmlinfo("testhtmlinfo"); | |
| 47 | - } | |
| 48 | - | |
| 49 | -} |
| @@ -1,33 +0,0 @@ | ||
| 1 | - | |
| 2 | -package WebScraping.utilityT01; | |
| 3 | - | |
| 4 | -import webScraping.utility.SearchDataRW; | |
| 5 | -import java.io.File; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * | |
| 9 | - * @author kgto | |
| 10 | - */ | |
| 11 | - | |
| 12 | -public class SearchDataRWT01 { | |
| 13 | - SearchDataRW sio = new SearchDataRW(); | |
| 14 | - | |
| 15 | - File file = new File("SearchDataRWT01.xml"); | |
| 16 | - | |
| 17 | - /** | |
| 18 | - * @param args the command line arguments | |
| 19 | - */ | |
| 20 | - public static void main(String[] args) { | |
| 21 | - SearchDataRWT01 test01 = new SearchDataRWT01(); | |
| 22 | - test01.save01(); | |
| 23 | - } | |
| 24 | - | |
| 25 | - void SearchDataRWT01() { | |
| 26 | - } | |
| 27 | - | |
| 28 | - void save01() { | |
| 29 | - String str = "abc\ndef\nghi"; | |
| 30 | - sio.saveMsg404(str); | |
| 31 | - sio.write(file); | |
| 32 | - } | |
| 33 | -} |