@Test public void loadPropsNotFound() { assertThrows(IllegalStateException.class, () -> Version.loadPropertiesFile("tsss")); }
static Properties loadPropertiesFile(final String file) { final Properties properties = new Properties(); try { properties.load(Version.class.getResourceAsStream("/" + file)); } catch (IOException | NullPointerException e) { throw new IllegalStateException("Could not load \"" + file + "\"", e); } return properties; }
Version { static Properties loadPropertiesFile(final String file) { final Properties properties = new Properties(); try { properties.load(Version.class.getResourceAsStream("/" + file)); } catch (IOException | NullPointerException e) { throw new IllegalStateException("Could not load \"" + file + "\"", e); } return properties; } }
Version { static Properties loadPropertiesFile(final String file) { final Properties properties = new Properties(); try { properties.load(Version.class.getResourceAsStream("/" + file)); } catch (IOException | NullPointerException e) { throw new IllegalStateException("Could not load \"" + file + "\"", e); } return properties; } Version(); private  Version(Properties properties); private  Version(final String groupId,
                    final String artifactId,
                    final String projectVersion,
                    final String gitBranch,
                    final String gitCommit); }
Version { static Properties loadPropertiesFile(final String file) { final Properties properties = new Properties(); try { properties.load(Version.class.getResourceAsStream("/" + file)); } catch (IOException | NullPointerException e) { throw new IllegalStateException("Could not load \"" + file + "\"", e); } return properties; } Version(); private  Version(Properties properties); private  Version(final String groupId,
                    final String artifactId,
                    final String projectVersion,
                    final String gitBranch,
                    final String gitCommit); String getGroupId(); String getArtifactId(); String getVersion(); String getGitBranch(); String getGitCommit(); }
Version { static Properties loadPropertiesFile(final String file) { final Properties properties = new Properties(); try { properties.load(Version.class.getResourceAsStream("/" + file)); } catch (IOException | NullPointerException e) { throw new IllegalStateException("Could not load \"" + file + "\"", e); } return properties; } Version(); private  Version(Properties properties); private  Version(final String groupId,
                    final String artifactId,
                    final String projectVersion,
                    final String gitBranch,
                    final String gitCommit); String getGroupId(); String getArtifactId(); String getVersion(); String getGitBranch(); String getGitCommit();  }