Browse Source

开发者工具链

master
richie 5 years ago
parent
commit
4df8e4e669
  1. 2
      src/main/java/com/fanruan/api/FineKit.java
  2. 19
      src/test/java/com/fanruan/api/FineKitTest.java

2
src/main/java/com/fanruan/api/FineKit.java

@ -15,7 +15,7 @@ public class FineKit {
static { static {
Properties properties = new Properties(); Properties properties = new Properties();
try { try {
properties.load(FineKit.class.getResourceAsStream("version.properties")); properties.load(FineKit.class.getResourceAsStream("/version.properties"));
version = properties.getProperty("version"); version = properties.getProperty("version");
} catch (IOException ignore) { } catch (IOException ignore) {
version = "1.0"; version = "1.0";

19
src/test/java/com/fanruan/api/FineKitTest.java

@ -0,0 +1,19 @@
package com.fanruan.api;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author richie
* @version 10.0
* Created by richie on 2019-08-09
*/
public class FineKitTest {
@Test
public void version() {
Assert.assertEquals("1.0", FineKit.version());
}
}
Loading…
Cancel
Save