> + @BeforeMethod
> + protected void createContainer() throws Exception {
> + this.blobStore.createContainerInLocation(null, this.container);
> + }
> +
> + @AfterMethod
> + protected void deleteContainer() throws Exception {
> + this.blobStore.deleteContainer(this.container);
> + Assert.assertTrue(!this.blobStore.containerExists(this.container),
> "Container SHOULD NOT exist");
> + }
> +
> + @Test
> + protected void containerExists() throws Exception {
> +
> + Assert.assertTrue(this.blobStore.containerExists(this.container),
> "Container SHOULD exist");
> +
> Assert.assertTrue(!this.blobStore.containerExists(String.valueOf(Calendar.getInstance().getTimeInMillis())),
Personal preference: I much prefer `Assert.assertFalse(condition) compared to
`Assert.assertTrue(!condition)`
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/45/files#r14715341