Skip to content

Commit

Permalink
将加入LICENCE行为纳入单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc committed Apr 10, 2013
1 parent 53a0da4 commit 1567874
Showing 1 changed file with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

package com.apdplat.platform.util;

import static junit.framework.Assert.*;
import org.junit.Test;

/**
*
* @author 杨尚川
*/
public class AddLicenceForSourceFileTest {
@Test
public void testProcessJavaFile(){
try{
AddLicenceForSourceFile.processJavaFile();
}catch(Exception e){
fail(e.getMessage());
}
}
@Test
public void testProcessJspFile(){
try{
AddLicenceForSourceFile.processJspFile();
}catch(Exception e){
fail(e.getMessage());
}
}
@Test
public void testProcessJsFile(){
try{
AddLicenceForSourceFile.processJsFile();
}catch(Exception e){
fail(e.getMessage());
}
}
}

0 comments on commit 1567874

Please sign in to comment.