11/** 
2-  * Copyright (c) 2012, 2014 , Credit Suisse (Anatole Tresch), Werner Keil and others by the @author tag. 
2+  * Copyright (c) 2012, 2015 , Credit Suisse (Anatole Tresch), Werner Keil and others by the @author tag. 
33 * 
44 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
55 * use this file except in compliance with the License. You may obtain a copy of 
2929import  java .util .List ;
3030
3131/** 
32-  * JSR354TestConfiguration setup class. This is an example TCK setup class, that has to be written by 
33-  * implementors to setup the JSR 354 TCK for running with their implementations. 
32+  * JSR354TestConfiguration setup class. This is an example TCK setup class, that 
33+  * has to be written by implementors to setup the JSR 354 TCK for running with 
34+  * their implementations. 
3435 * <p> 
3536 * Created by Anatole Tresch on 14.06.2014. 
3637 */ 
3738public  final  class  TCKTestSetup  implements  JSR354TestConfiguration  {
3839
39-     /** 
40-      * Provide the MonetaryAmount implementation classes to be tested for immutability and other 
41-      * implementation requirements. 
42-      * 
43-      * @return the monetary amount classes to be tested, not null and not empty. 
44-      */ 
45-     @ Override 
46-     public  Collection <Class > getAmountClasses () {
47-         return  Arrays 
48-                 .asList (new  Class []{Money .class , FastMoney .class });
49-     }
40+ 	/** 
41+ 	 * Provide the MonetaryAmount implementation classes to be tested for 
42+ 	 * immutability and other implementation requirements. 
43+ 	 * 
44+ 	 * @return the monetary amount classes to be tested, not null and not empty. 
45+ 	 */ 
46+ 	@ Override 
47+ 	public  Collection <Class > getAmountClasses () {
48+ 		return  Arrays .asList (new  Class [] { Money .class , FastMoney .class  });
49+ 	}
5050
51-     /** 
52-      * Provide the CurrencyUnit implementation classes to be tested for immutability and other 
53-      * implementation requirements. 
54-      * 
55-      * @return the currency unit classes to be tested, not null and not empty. 
56-      */ 
57-     @ Override 
58-     public  Collection <Class > getCurrencyClasses () {
59-         try  {
60-             return  Arrays 
61-                     .asList (new  Class []{JDKCurrencyAdapter .class });
62-         } catch  (Exception  e ) {
63-             e .printStackTrace ();
64-             throw  new  RuntimeException ("Currency class not lodable: org.javamoney.moneta.internal.format.JDKCurrencyAdapter" );
65-         }
66-     }
67- 
68-     /** 
69-      * Provide the MonetaryOperator implementation classes to be tested for immutability and other 
70-      * implementation requirements. 
71-      * 
72-      * @return the monetary operator classes to be tested, not null and not empty. 
73-      */ 
74-     @ Override 
75-     public  Collection <MonetaryOperator > getMonetaryOperators4Test () {
76-         List <MonetaryOperator > ops  = new  ArrayList <>();
77-         ops .add (Monetary .getDefaultRounding ());
78-         ops .add (MonetaryConversions .getConversion ("EUR" ));
79-         return  ops ;
80-     }
51+ 	/** 
52+ 	 * Provide the CurrencyUnit implementation classes to be tested for 
53+ 	 * immutability and other implementation requirements. 
54+ 	 * 
55+ 	 * @return the currency unit classes to be tested, not null and not empty. 
56+ 	 */ 
57+ 	@ Override 
58+ 	public  Collection <Class > getCurrencyClasses () {
59+ 		try  {
60+ 			return  Arrays .asList (new  Class [] { JDKCurrencyAdapter .class  });
61+ 		} catch  (Exception  e ) {
62+ 			e .printStackTrace ();
63+ 			throw  new  RuntimeException (
64+ 					"Currency class not loadable: " 
65+ 							+ org .javamoney .moneta .internal .JDKCurrencyAdapter .class 
66+ 									.getName ());
67+ 		}
68+ 	}
8169
70+ 	/** 
71+ 	 * Provide the MonetaryOperator implementation classes to be tested for 
72+ 	 * immutability and other implementation requirements. 
73+ 	 * 
74+ 	 * @return the monetary operator classes to be tested, not null and not 
75+ 	 *         empty. 
76+ 	 */ 
77+ 	@ Override 
78+ 	public  Collection <MonetaryOperator > getMonetaryOperators4Test () {
79+ 		List <MonetaryOperator > ops  = new  ArrayList <>();
80+ 		ops .add (Monetary .getDefaultRounding ());
81+ 		ops .add (MonetaryConversions .getConversion ("EUR" ));
82+ 		return  ops ;
83+ 	}
8284}
0 commit comments