java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/ProjectTestUtils.java
@SuppressWarnings("unchecked")
    public static List<TestSourcePath> listTestSourcePaths(List<Object> arguments, IProgressMonitor monitor)
            throws JavaModelException {
        final List<TestSourcePath> resultList = new ArrayList<>();
        if (arguments == null || arguments.size() == 0) {
            return Collections.emptyList();
        }

        final ArrayList<String> uriArray = ((ArrayList<String>) arguments.get(0));
        for (final String uri : uriArray) {
            final Set<IJavaProject> projectSet = parseProjects(uri);
            for (final IJavaProject project : projectSet) {
                resultList.addAll(getTestSourcePaths(project));
            }
        }
        return resultList;
    }
/**
     * Method to get the valid paths which contains test code
     *
     * @param arguments Array of the workspace folder path
     * @param monitor
     * @throws URISyntaxException
     * @throws JavaModelException
     */
Method to get the valid paths which contains test code
@param arguments Array of the workspace folder path
@param monitor
@throws URISyntaxException
@throws JavaModelException
Method to get the valid paths which contains test code @param arguments Array of the workspace folder path @param monitor @throws URISyntaxException @throws JavaModelException
@SuppressWarnings("unchecked")
    public static List<TestSourcePath> listTestSourcePaths(List<Object> arguments, IProgressMonitor monitor)
            throws JavaModelException {
        final List<TestSourcePath> resultList = new ArrayList<>();
        if (arguments == null || arguments.size() == 0) {
            return Collections.emptyList();
        }
        final ArrayList<String> uriArray = ((ArrayList<String>) arguments.get(0));
        for (final String uri : uriArray) {
            final Set<IJavaProject> projectSet = parseProjects(uri);
            for (final IJavaProject project : projectSet) {
                resultList.addAll(getTestSourcePaths(project));
            }
        }
        return resultList;
    }
@ SuppressWarnings ( "unchecked" ) public static List < TestSourcePath > listTestSourcePaths ( List < Object > arguments , IProgressMonitor monitor ) throws JavaModelException { final List < TestSourcePath > resultList = new ArrayList < > ( ) ; if ( arguments == null || arguments . size ( ) == 0 ) { return Collections . emptyList ( ) ; } final ArrayList < String > uriArray = ( ( ArrayList < String > ) arguments . get ( 0 ) ) ; for ( final String uri : uriArray ) { final Set < IJavaProject > projectSet = parseProjects ( uri ) ; for ( final IJavaProject project : projectSet ) { resultList . addAll ( getTestSourcePaths ( project ) ) ; } } return resultList ; }
Method to get the valid paths which contains test code
 @param arguments Array of the workspace folder path
 @param monitor
 @throws URISyntaxException
 @throws JavaModelException
Method to get the valid paths which contains test code @param arguments Array of the workspace folder path @param monitor @throws URISyntaxException @throws JavaModelException