Skip to content

Commit

Permalink
Making baseURLSet static to avoid running baseURL code with each request
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Aug 23, 2014
1 parent 82a0596 commit caaa43e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -141,7 +141,7 @@ public class FedoraNodes extends AbstractResource {
protected Session session;

private static final Logger LOGGER = getLogger(FedoraNodes.class);
private boolean baseURLSet = false;
private static boolean baseURLSet = false;

/**
* Set the baseURL for JMS events.
Expand Down
Expand Up @@ -280,6 +280,16 @@ public void testDeleteObject() throws Exception {
getStatus(new HttpGet(location)));
}

@Test
public void testCreateManyObjects() throws Exception {
final int manyObjects = 2000;
for ( int i = 0; i < manyObjects; i++ ) {
Thread.sleep(10); // needed to prevent overloading
final HttpResponse response = createObject("");
logger.debug( response.getFirstHeader("Location").getValue() );
}
}

@Test
public void testDeleteWithBadEtag() throws Exception {

Expand Down

0 comments on commit caaa43e

Please sign in to comment.