/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in 
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.assertionbenchmarks;

import java.math.BigDecimal;

import org.mutabilitydetector.cli.CommandLineOptions;
import org.mutabilitydetector.cli.RunMutabilityDetector;

import com.google.classpath.ClassPath;
import com.google.classpath.ClassPathFactory;

public class CheckSomeClass {

	public static void main(String[] args) {
		//checkClass(TestIllegalFieldValueException.class);
//		checkClass(DurationField.class);
		checkClass(BigDecimal.class);
	}

	private static void checkClass(Class<?> toAnalyse) {
		ClassPath cp = new ClassPathFactory().createFromJVM();
		String match = toAnalyse.getName().replace("$", "\\$");
		CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match);
		new RunMutabilityDetector(cp, options).run();
	}

}

/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in 
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.assertionbenchmarks;

import java.math.BigDecimal;

import org.mutabilitydetector.cli.CommandLineOptions;
import org.mutabilitydetector.cli.RunMutabilityDetector;
import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath;
import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory;


public class CheckSomeClass {

	public static void main(String[] args) {
		//checkClass(TestIllegalFieldValueException.class);
//		checkClass(DurationField.class);
		checkClass(BigDecimal.class);
	}

	private static void checkClass(Class<?> toAnalyse) {
		ClassPath cp = new ClassPathFactory().createFromJVM();
		String match = toAnalyse.getName().replace("$", "\\$");
		CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match);
		new RunMutabilityDetector(cp, options).run();
	}

}

Use the repackaged versions of classes.
Use the repackaged versions of classes.

git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@299 c7a0535c-eda6-11de-83d8-6d5adf01d787
