Skip to content

Instantly share code, notes, and snippets.

@lfryc
Forked from anonymous/gist:4275523
Created December 13, 2012 10:24
Show Gist options
  • Save lfryc/4275537 to your computer and use it in GitHub Desktop.
Save lfryc/4275537 to your computer and use it in GitHub Desktop.
Migration script from Warp API Alpha1 to Alpha2
find -name "*.java" -exec sed -ri 's#ClientAction#Activity#g' {} \;
find -name "*.java" -exec sed -ri 's#ServerAssertion#Inspection#g' {} \;
find -name "*.java" -exec sed -ri 's#org\.jboss\.arquillian\.warp\.extension\.phaser#org.jboss.arquillian.warp.jsf#g' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#execute\(#initiate(#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#public void action\(\)#public void perform()#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#filter\(#observe(#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#verify\(#inspect(#' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment