<commit_before>package org.gridkit.coherence.cachewatchdog;

import org.gridkit.coherence.chtest.JarManager;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.internal.AssumptionViolatedException;

import com.tangosol.net.DefaultConfigurableCacheFactory;

public class IsolateCluster_with_12_1_2_TestPlan extends IsolateCluster_TestPlan {

	private static String TARGET_VERSION = "12.1.2.0b40177";

	@BeforeClass
	public static void verifyClassPath() {
		try {
			JarManager.getJarPath(TARGET_VERSION).hashCode();
		}
		catch(Exception e) {
			throw new AssumptionViolatedException("Coherence " + TARGET_VERSION + " is not available");
		}
	}
	
	@Before
	public void initCluster() {	
		cloud.all().useCoherenceVersion(TARGET_VERSION);
		cloud.all().setProp("tangosol.coherence.cachefactory", DefaultConfigurableCacheFactory.class.getName());
		super.initCluster();
	}
}<commit_msg>[partition-watchdog] Verification for Coherence jar version<commit_after>package org.gridkit.coherence.cachewatchdog;

import junit.framework.Assert;

import org.gridkit.coherence.chtest.JarManager;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.internal.AssumptionViolatedException;

import com.tangosol.coherence.component.application.console.Coherence;
import com.tangosol.net.DefaultConfigurableCacheFactory;

public class IsolateCluster_with_12_1_2_TestPlan extends IsolateCluster_TestPlan {

	private static String TARGET_VERSION = "12.1.2.0b40177";

	@BeforeClass
	public static void verifyClassPath() {
		try {
			JarManager.getJarPath(TARGET_VERSION).hashCode();
		}
		catch(Exception e) {
			throw new AssumptionViolatedException("Coherence " + TARGET_VERSION + " is not available");
		}
	}
	
	@Before
	public void initCluster() {	
		cloud.all().useCoherenceVersion(TARGET_VERSION);
		cloud.all().setProp("tangosol.coherence.cachefactory", DefaultConfigurableCacheFactory.class.getName());
		super.initCluster();
	}
	
	@Test
	public void verify_version() {
		cloud.node("node").exec(new Runnable() {
			
			@Override
			public void run() {
				Assert.assertEquals("12.1.2.0.0", Coherence.VERSION);
			}
		});
	}
}
{'fraction_non_alphanumeric': 0.10993560257589696, 'fraction_numerical': 0.015639374425023, 'mean_word_length': 5.6310975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1699426', 'n_tokens_mistral': 770, 'n_tokens_neox': 689, 'n_words': 115}