Package betsy.bpel.tools

Source Code of betsy.bpel.tools.TestsPerGroup

package betsy.bpel.tools;

import configuration.bpel.BPELProcessRepository;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
* Prints the processes per process group to the console.
*/
public class TestsPerGroup {

    public static void main(String[] args) {

        BPELProcessRepository processRepository = new BPELProcessRepository();
        List<String> names = processRepository.getNames();

        List<String> output = new LinkedList<>();


        for(String name : names) {
            int size = processRepository.getByName(name).size();
            if(size < 10) {
                output.add("00" + size + "\t" + name );
            } else if(size < 100) {
                output.add("0" + size + "\t" + name );
            } else {
                output.add("" + size + "\t" + name );
            }

        }

        Collections.sort(output);

        for(String out : output) {
            System.out.println(out);
        }

    }

}
TOP

Related Classes of betsy.bpel.tools.TestsPerGroup

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.