@Test public void testVersion() { String v = Cache2kVersion.getVersion(); assertNotNull(v); assertNotEquals("<unknown>", v); assertTrue("Either version is not replaced or something that looks like a version", v.equals("${version}") || v.matches("[0-9]+\\..*")); }
public static String getVersion() { return version; }
Cache2kVersion { public static String getVersion() { return version; } }
Cache2kVersion { public static String getVersion() { return version; }  }
Cache2kVersion { public static String getVersion() { return version; }  static String getVersion(); }
Cache2kVersion { public static String getVersion() { return version; }  static String getVersion();  }