@Test public void buildFromInputStream() throws Exception { InputStream inUsers = SimpleUserSystemServiceHelperTest.class.getResourceAsStream(USERS_FILE); InputStream inSkills = SimpleUserSystemServiceHelperTest.class.getResourceAsStream(SKILLS_FILE); InputStream inAffinities = SimpleUserSystemServiceHelperTest.class.getResourceAsStream(AFFINITIES_FILE); try { assertUserGroupInfo(SimpleUserSystemServiceHelper.buildInfo(inUsers, inSkills, inAffinities)); } finally { inUsers.close(); inSkills.close(); inAffinities.close(); } }
public static UserGroupInfo buildInfo(Path users, Path skills, Path affinities) throws IOException { try (InputStream usersIn = Files.newInputStream(users); InputStream skillsIn = skills != null ? Files.newInputStream(skills) : null; InputStream affinitiesIn = affinities != null ? Files.newInputStream(affinities) : null) { return buildInfo(usersIn, skillsIn, affinitiesIn); } }
SimpleUserSystemServiceHelper { public static UserGroupInfo buildInfo(Path users, Path skills, Path affinities) throws IOException { try (InputStream usersIn = Files.newInputStream(users); InputStream skillsIn = skills != null ? Files.newInputStream(skills) : null; InputStream affinitiesIn = affinities != null ? Files.newInputStream(affinities) : null) { return buildInfo(usersIn, skillsIn, affinitiesIn); } } }
SimpleUserSystemServiceHelper { public static UserGroupInfo buildInfo(Path users, Path skills, Path affinities) throws IOException { try (InputStream usersIn = Files.newInputStream(users); InputStream skillsIn = skills != null ? Files.newInputStream(skills) : null; InputStream affinitiesIn = affinities != null ? Files.newInputStream(affinities) : null) { return buildInfo(usersIn, skillsIn, affinitiesIn); } } private  SimpleUserSystemServiceHelper(); }
SimpleUserSystemServiceHelper { public static UserGroupInfo buildInfo(Path users, Path skills, Path affinities) throws IOException { try (InputStream usersIn = Files.newInputStream(users); InputStream skillsIn = skills != null ? Files.newInputStream(skills) : null; InputStream affinitiesIn = affinities != null ? Files.newInputStream(affinities) : null) { return buildInfo(usersIn, skillsIn, affinitiesIn); } } private  SimpleUserSystemServiceHelper(); static UserGroupInfo buildInfo(Path users, Path skills, Path affinities); static UserGroupInfo buildInfo(InputStream usersIn, InputStream skillsIn, InputStream affinitiesIn); }
SimpleUserSystemServiceHelper { public static UserGroupInfo buildInfo(Path users, Path skills, Path affinities) throws IOException { try (InputStream usersIn = Files.newInputStream(users); InputStream skillsIn = skills != null ? Files.newInputStream(skills) : null; InputStream affinitiesIn = affinities != null ? Files.newInputStream(affinities) : null) { return buildInfo(usersIn, skillsIn, affinitiesIn); } } private  SimpleUserSystemServiceHelper(); static UserGroupInfo buildInfo(Path users, Path skills, Path affinities); static UserGroupInfo buildInfo(InputStream usersIn, InputStream skillsIn, InputStream affinitiesIn); static final String SKILLS_ATTRIBUTE_NAME; static final String AFFINITIES_ATTRIBUTE_NAME; }