4343import static org .junit .Assert .fail ;
4444import com .github .kevinsawicki .http .HttpRequest .HttpRequestException ;
4545import com .github .kevinsawicki .http .HttpRequest .ConnectionFactory ;
46- import com .github .kevinsawicki .http .HttpRequest .UploadProgressCallback ;
46+ import com .github .kevinsawicki .http .HttpRequest .UploadProgress ;
4747
4848import java .io .BufferedReader ;
4949import java .io .ByteArrayInputStream ;
@@ -3466,7 +3466,7 @@ public void handle(Request request, HttpServletResponse response) {
34663466 * @throws Exception
34673467 */
34683468 @ Test
3469- public void uploadProgressCallbackSend () throws Exception {
3469+ public void uploadProgressSend () throws Exception {
34703470 final AtomicReference <String > body = new AtomicReference <String >();
34713471 handler = new RequestHandler () {
34723472
@@ -3480,7 +3480,7 @@ public void handle(Request request, HttpServletResponse response) {
34803480 new FileWriter (file ).append ("hello" ).close ();
34813481
34823482 final AtomicInteger tx = new AtomicInteger (0 );
3483- UploadProgressCallback progress = new UploadProgressCallback () {
3483+ UploadProgress progress = new UploadProgress () {
34843484 public void onUpload (int transferred , int total ) {
34853485 assertEquals (file .length (), total );
34863486 assertEquals (tx .incrementAndGet (), transferred );
@@ -3496,7 +3496,7 @@ public void onUpload(int transferred, int total) {
34963496 * @throws Exception
34973497 */
34983498 @ Test
3499- public void uploadProgressCallbackSendInputStream () throws Exception {
3499+ public void uploadProgressSendInputStream () throws Exception {
35003500 final AtomicReference <String > body = new AtomicReference <String >();
35013501 handler = new RequestHandler () {
35023502
@@ -3510,7 +3510,7 @@ public void handle(Request request, HttpServletResponse response) {
35103510 new FileWriter (file ).append ("hello" ).close ();
35113511 InputStream input = new FileInputStream (file );
35123512 final AtomicInteger tx = new AtomicInteger (0 );
3513- UploadProgressCallback progress = new UploadProgressCallback () {
3513+ UploadProgress progress = new UploadProgress () {
35143514 public void onUpload (int transferred , int total ) {
35153515 assertEquals (0 , total );
35163516 assertEquals (tx .incrementAndGet (), transferred );
@@ -3526,7 +3526,7 @@ public void onUpload(int transferred, int total) {
35263526 * @throws Exception
35273527 */
35283528 @ Test
3529- public void uploadProgressCallbackSendReader () throws Exception {
3529+ public void uploadProgressSendReader () throws Exception {
35303530 final AtomicReference <String > body = new AtomicReference <String >();
35313531 handler = new RequestHandler () {
35323532
@@ -3538,7 +3538,7 @@ public void handle(Request request, HttpServletResponse response) {
35383538 };
35393539
35403540 final AtomicInteger tx = new AtomicInteger (0 );
3541- UploadProgressCallback progress = new UploadProgressCallback () {
3541+ UploadProgress progress = new UploadProgress () {
35423542 public void onUpload (int transferred , int total ) {
35433543 assertEquals (-1 , total );
35443544 assertEquals (tx .incrementAndGet (), transferred );
@@ -3556,7 +3556,7 @@ public void onUpload(int transferred, int total) {
35563556 * @throws Exception
35573557 */
35583558 @ Test
3559- public void nullUploadProgressCallback () throws Exception {
3559+ public void nullUploadProgress () throws Exception {
35603560 final AtomicReference <String > body = new AtomicReference <String >();
35613561 handler = new RequestHandler () {
35623562
0 commit comments