Here you can find the source of toString(Collection setOfTests)
public static String toString(Collection setOfTests)
//package com.java2s; /**/*from w w w .jav a2s .c o m*/ * This file is part of Spritnesse. * <p/> * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version. * <p/> * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * <p/> * You should have received a copy of the GNU Lesser General Public License along with this library. * <p/> * Copyright (c) 2014, Andrew Oxenburgh, All rights reserved. */ import java.util.Collection; public class Main { public static String toString(Collection setOfTests) { String errorSet = "[\n"; for (Object test : setOfTests) { errorSet += test + ", \n"; } errorSet += "]"; return errorSet; } }