/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.bcel.verifier;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

public class VerifyJavaHomesTestCase extends AbstractVerifierTestCase {

    @Disabled("Run once in a while, it takes a long time.")
    @ParameterizedTest
    // @Execution(ExecutionMode.CONCURRENT)
    @MethodSource("org.apache.bcel.generic.JavaHome#streamJarEntryClassName")
    public void testJarEntryClassName(final String name) throws ClassNotFoundException {
        // System.out.println(jarEntry.getName());
        // Skip $ classes for now
        if (!name.contains("$")) {
            doAllPasses(name);
        }
    }

}

@@ -1048,16 +1048,1210 @@
 Case %7B%0A%0A
+    static int count;%0A%0A    /**%0A     * Eventually runs out of memory? Super now calls VerifierFactory.clear();%0A     * %0A     * %3Cpre%3E%0A      164800................................................................................%0A      165600...........Exception in thread %22fork-1-event-thread%22 .java.lang.OutOfMemoryError: Java heap space%0A        Exception in thread %22fork-1-event-thread%22 java.lang.OutOfMemoryError: Java heap space%0A        at java.lang.AbstractStringBuilder.%3Cinit%3E(AbstractStringBuilder.java:68)%0A        at java.lang.StringBuilder.%3Cinit%3E(StringBuilder.java:106)%0A        at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.toString(AbstractStreamDecoder.java:364)%0A        at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.readString(AbstractStreamDecoder.java:336)%0A        at org.apache.maven.surefire.api.stream.AbstractStreamDecoder.readString(AbstractStreamDecoder.java:196)%0A        at org.apache.maven.surefire.stream.EventDecoder.decode(EventDecoder.java:176)%0A        at org.apache.maven.plugin.surefire.extensions.EventConsumerThread.run(EventConsumerThread.java:73)%0A     * %3C/pre%3E%0A     * %0A     * @param name%0A     * @throws ClassNotFoundException%0A     */%0A
     @Dis
@@ -2289,16 +2289,21 @@
 takes a 
+very 
 long tim
@@ -2592,16 +2592,16 @@
 ame());%0A
-
         
@@ -2626,16 +2626,222 @@
 for now%0A
+        count++;%0A        if (count %25 10 == 0) %7B%0A            System.out.print('.');%0A        %7D%0A        if (count %25 800 == 0) %7B%0A            System.out.println();%0A            System.out.print(count);%0A        %7D%0A
         

Document failure in org.apache.bcel.verifier.VerifyJavaHomesTestCase