Package com.github.ebnew.ki4so.core.key

Examples of com.github.ebnew.ki4so.core.key.KeyServiceImpl


 
  private KeyServiceImpl keyService;

  @Before
  public void setUp() throws Exception {
    keyService = new KeyServiceImpl();
  }
View Full Code Here


   * 测试读取文件数据方法。
   */
  @Test
  public void testReadDataFromFile(){
   
    KeyServiceImpl keyServiceImpl = new KeyServiceImpl();
    //测试文件为空的情况。
    //设置文件路径空。
    keyServiceImpl.setClassPathData(null);
    keyServiceImpl.setExternalData(null);
    //读取文件。
    Assert.assertNull(keyServiceImpl.readDataFromFile());
   
    //测试错误的文件路径的情况。
    keyServiceImpl.setExternalData("ssss");
    //读取文件。
    Assert.assertNull(keyServiceImpl.readDataFromFile());
   
    //测试错误的文件路径的情况。
    keyServiceImpl.setClassPathData("ssss");
    //读取文件。
    Assert.assertNull(keyServiceImpl.readDataFromFile());
  }
View Full Code Here

TOP

Related Classes of com.github.ebnew.ki4so.core.key.KeyServiceImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.