📄 jsourcecodewizardtest.java
字号:
/**
* IgaLib -> wizard
* Copyright (C) 2001 Tosiki IGA , IgaLib project member
* (http://homepage2.nifty.com/igat/igapyon/index.html)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package jp.ne.nifty.iga.tosiki.wizard;
import jp.ne.nifty.iga.tosiki.string.IndentWriter;
import junit.framework.TestCase;
import java.io.*;
/**
* 僜乕僗僐乕僪僂傿僓乕僪傪僥僗僩偡傞僋儔僗偱偡丅
* JUnit傪棙梡偟偰僥僗僩傪幚巤偡傞偨傔偵懚嵼偡傞僋儔僗偱偡丅<BR>
* 偙偺僋儔僗帺恎傪壗偐偺梡搑偵棙梡偡傞偙偲偼柍偄偱偟傚偆丅
*
* @author Tosiki IGA
*/
public class JSourceCodeWizardTest
extends TestCase
{
public JSourceCodeWizardTest(String name)
{
super(name);
}
public static final void main(String[] args)
{
junit.textui.TestRunner.run(JSourceCodeWizardTest.class);
}
public void testJSourceCodeWizard()
throws IOException
{
JSourceCodeWizard.writeDefFile("./sample/JSourceCodeWizardSample-auto.xml");
JSourceCodeWizard.main(new String[0]);
}
public void testGetUpper()
throws IOException
{
assertEquals("Test",JSourceCodeWizardProcessor.getUpper("test"));
}
public void testIndentWriter()
throws IOException
{
IndentWriter.convert(new File("./jp/ne/nifty/iga/tosiki/string/MojiUtil.java"),new File("./sample/MojiUtil.java.encode.txt"));
IndentWriter.convert(new File("./sample/encode.input.txt"),new File("./sample/encode.output.txt"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -