@@ -67,7 +67,7 @@ public PiBondingMovementReactionTest() throws Exception {
6767 * The JUnit setup method
6868 */
6969 @ Test
70- public void testPiBondingMovementReaction () throws Exception {
70+ public void testPiBondingMovementReaction () {
7171 IReactionProcess type = new PiBondingMovementReaction ();
7272 Assert .assertNotNull (type );
7373 }
@@ -78,8 +78,6 @@ public void testPiBondingMovementReaction() throws Exception {
7878 * Automatic search of the center active.
7979 *
8080 * InChI=1/C6H6/c1-2-4-6-5-3-1/h1-6H
81- *
82- * @return The test suite
8381 */
8482 @ Test
8583 @ Override
@@ -108,7 +106,7 @@ public void testInitiate_IAtomContainerSet_IAtomContainerSet() throws Exception
108106 setOfReactants .addAtomContainer (molecule );
109107
110108 /* initiate */
111- List <IParameterReact > paramList = new ArrayList <IParameterReact >();
109+ List <IParameterReact > paramList = new ArrayList <>();
112110 IParameterReact param = new SetReactionCenter ();
113111 param .setParameter (Boolean .FALSE );
114112 paramList .add (param );
@@ -131,8 +129,6 @@ public void testInitiate_IAtomContainerSet_IAtomContainerSet() throws Exception
131129 * Automatic search of the center active.
132130 *
133131 * InChI=1/C8H10/c1-7-5-3-4-6-8(7)2/h3-6H,1-2H3
134- *
135- * @return The test suite
136132 */
137133 @ Test
138134 public void testAutomaticSearchCentreActiveExample1 () throws Exception {
@@ -164,10 +160,11 @@ public void testAutomaticSearchCentreActiveExample1() throws Exception {
164160 setOfReactants .addAtomContainer (molecule );
165161
166162 /* initiate */
167- List <IParameterReact > paramList = new ArrayList <IParameterReact >();
163+ List <IParameterReact > paramList = new ArrayList <>();
168164 IParameterReact param = new SetReactionCenter ();
169165 param .setParameter (Boolean .FALSE );
170166 paramList .add (param );
167+ type .setParameterList (paramList );
171168 IReactionSet setOfReactions = type .initiate (setOfReactants , null );
172169
173170 Assert .assertEquals (1 , setOfReactions .getReactionCount ());
@@ -215,8 +212,6 @@ static boolean matches(IAtomContainer a, IAtomContainer b) throws CDKException {
215212 * Automatic search of the center active.
216213 *
217214 * InChI=1/C11H10/c1-9-6-7-10-4-2-3-5-11(10)8-9/h2-8H,1H3
218- *
219- * @return The test suite
220215 */
221216 @ Test
222217 public void testDoubleRingConjugated () throws Exception {
@@ -225,10 +220,11 @@ public void testDoubleRingConjugated() throws Exception {
225220 IAtomContainerSet setOfReactants = getExampleReactants ();
226221
227222 /* initiate */
228- List <IParameterReact > paramList = new ArrayList <IParameterReact >();
223+ List <IParameterReact > paramList = new ArrayList <>();
229224 IParameterReact param = new SetReactionCenter ();
230225 param .setParameter (Boolean .FALSE );
231226 paramList .add (param );
227+ type .setParameterList (paramList );
232228 IReactionSet setOfReactions = type .initiate (setOfReactants , null );
233229
234230 Assert .assertEquals (2 , setOfReactions .getReactionCount ());
@@ -286,7 +282,6 @@ public void testDoubleRingConjugated() throws Exception {
286282 *
287283 * InChI=1/C11H10/c1-9-6-7-10-4-2-3-5-11(10)8-9/h2-8H,1H3
288284 *
289- * @return The test suite
290285 */
291286 @ Test
292287 public void testDoubleRingConjugated2 () throws Exception {
@@ -305,7 +300,7 @@ public void testDoubleRingConjugated2() throws Exception {
305300 molecule .getBond (11 ).setFlag (CDKConstants .REACTIVE_CENTER , true );
306301
307302 /* initiate */
308- List <IParameterReact > paramList = new ArrayList <IParameterReact >();
303+ List <IParameterReact > paramList = new ArrayList <>();
309304 IParameterReact param = new SetReactionCenter ();
310305 param .setParameter (Boolean .TRUE );
311306 paramList .add (param );
@@ -422,7 +417,6 @@ private IAtomContainerSet getExpectedProducts() {
422417 * Test to recognize if a IAtomContainer matcher correctly identifies the CDKAtomTypes.
423418 *
424419 * @param molecule The IAtomContainer to analyze
425- * @throws CDKException
426420 */
427421 private void makeSureAtomTypesAreRecognized (IAtomContainer molecule ) throws Exception {
428422
0 commit comments