testng via junit conversion

for i in Test*java;do z=${i/Test};z=${z/.java}  f=$(sed <../TestDigest.java   -n -e "/void test$z"'/,/[[:space:]]*}/p' )    ;  echo $i; echo >$i  ' package fr.cryptohash.test; import fr.cryptohash.*; import junit.framework.TestCase; import static  fr.cryptohash.TestDigest.*; public class '"${i/.java}"' extends TestCase{'"$f"'}';  done
Speed test: SHA-256
message length =    16 ->   20.64 MBytes/s
message length =    64 ->   45.12 MBytes/s
message length =   256 ->   78.03 MBytes/s
message length =  1024 ->   95.39 MBytes/s
message length =  8192 ->  101.99 MBytes/s
long messages          ->  102.34 MBytes/s
Speed test: SHA-256
message length =    16 ->   21.21 MBytes/s
message length =    64 ->   46.11 MBytes/s
message length =   256 ->   79.84 MBytes/s
message length =  1024 ->   97.97 MBytes/s
message length =  8192 ->  104.69 MBytes/s
long messages          ->  106.35 MBytes/s