you can download the CF CLI from https://github.com/cloudfoundry/cli#downloads or use the curl command below
cd ~/bin
curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx
| export OS_USERNAME="yourUser" | |
| export OS_PASSWORD="yourPass" | |
| # logs into protected page (your formdata params may be different), finds relative urls, converts them to full urls and stores them in a local file | |
| wget -O- --post-data "os_username=${OS_USERNAME}&os_password=${OS_PASSWORD}" https://www.example.com/display/IT/Release+Management \ | |
| | grep href \ | |
| | sed -n 's/.*href="\([^"]*\).*/https\:\/\/www\.example\.com\1/p' \ | |
| | sort | uniq > urls.txt | |
| # iterates through file of urls and aggrregates screen scrapes of selected xpath elements in each url into a single summary files | |
| echo "<html><head><title>summary</title></head><body>" >summary.html; |
you can download the CF CLI from https://github.com/cloudfoundry/cli#downloads or use the curl command below
cd ~/bin
curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx
| @RunWith(SpringJUnit4ClassRunner.class) | |
| @TransactionConfiguration(transactionManager = "txManager", defaultRollback = true) | |
| ... | |
| public class BookDaoTest extends AbstractTransactionalJUnit4SpringContextTests { | |
| @Test public void testBookEntityCaching() { | |
| bookDao.findById(3); | |
| bookDao.findById(3); | |
| Statistics stats = bookDao.getHibernateStatistics(); | |
| String regionName = "edu.uw.data.model.Book"; | |
| SecondLevelCacheStatistics level2BookEntityStats = |