Examples of KeyServiceImpl


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

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

   * 测试读取文件数据方法。
   */
  @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
Copyright © 2018 www.massapi.com. 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.