11/*
2- * Copyright 2005-2010 the original author or authors.
2+ * Copyright 2005-2012 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
@@ -46,7 +46,7 @@ public void testGetters() throws Exception {
4646 @ Test
4747 public void testInvoke () throws Exception {
4848 Assert .assertFalse ("Method invoked before invocation" , myMethodInvoked );
49- endpoint .invoke (new Object []{ "arg" } );
49+ endpoint .invoke ("arg" );
5050 Assert .assertTrue ("Method invoked before invocation" , myMethodInvoked );
5151 }
5252
@@ -65,13 +65,13 @@ public void testHashCode() throws Exception {
6565 Assert .assertFalse ("Equal" , new MethodEndpoint (this , otherMethod ).hashCode () == endpoint .hashCode ());
6666 }
6767
68+ @ Test
69+ public void testToString () throws Exception {
70+ Assert .assertNotNull ("No valid toString" , endpoint .toString ());
71+ }
72+
6873 public void myMethod (String arg ) {
6974 Assert .assertEquals ("Invalid argument" , "arg" , arg );
7075 myMethodInvoked = true ;
7176 }
72-
73- @ Test
74- public void testToString () throws Exception {
75- Assert .assertNotNull ("Na valid toString" , endpoint .toString ());
76- }
7777}
0 commit comments