JcloudsVersion { @Override public String toString() { return version; } @VisibleForTesting  JcloudsVersion(); @VisibleForTesting  JcloudsVersion(ClassLoader resourceLoader); @VisibleForTesting  JcloudsVersion(String version); @Override String toString(); static JcloudsVersion get(); final int majorVersion; final int minorVersion; final int patchVersion; final boolean alpha; final boolean beta; @Nullable final Integer alphaVersion; @Nullable final Integer betaVersion; final boolean releaseCandidate; @Nullable final Integer releaseCandidateVersion; final boolean snapshot; }
@Test public void testExtractsVersionFromResourceFile() { JcloudsVersion version = new JcloudsVersion(); assertEquals("0.0.0-SNAPSHOT", version.toString()); }