Inside Atlassian

Author

Brent Plump

Article in Archives
Stash backup and restore client for Git projects

Making Stash backups easier Until now, Atlassian’s recommended procedure for backing up a Stash server involved shutting down Stash and using your own scripts to backup the database and filesystem. That wasn’t ideal: system administrators had to spend time writing backup scripts and users were often given no information why the system is down. Alongside Stash […]

Article in Archives
Mockito makes mocking fluent interfaces easy

Whilst trying to TDD a bug fix, I hit a problem stubbing Stash’s NavBuilder. Stash uses NavBuilder to generate hyperlinks to different areas in the application. NavBuilder uses a hierarchy of builders to give developers a fluent interface for link creation.  For example, building a link to a pull request looks like this: [cc lang=”java” line_numbers=”0″] navBuilder.repo(repository).pullRequest(pullRequest.getId()).buildAbsolute() [/cc] Stubbing […]