This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RegistrationExampleServiceTest { | |
@Rule | |
public DBITestRule database = new DBITestRule(); | |
@Test(expected = RegistrationException.class) | |
public void testUserRegistration() throws RegistrationException { | |
UserDAO userDAO = database.getDbi().onDemand(UserDAO.class); | |
RegistrationExampleService service = database.getDbi().onDemand(RegistrationExampleService.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.example.exceptions.RegistrationException; | |
import com.example.User; | |
import com.example.UserRole; | |
import com.example.AccountDAO; | |
import com.example.UserDAO; | |
import com.example.UserRoleDAO; | |
import org.skife.jdbi.v2.sqlobject.CreateSqlObject; | |
import org.skife.jdbi.v2.sqlobject.Transaction; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage(java.io); | |
(function(args) { | |
var templateFileExtension = 'handlebars', | |
output = ['// This file is auto-generated and should be ignored from version control.\n'], | |
console = { | |
log: print | |
}, | |
showUsage = function() { | |
console.log('Usage: java -jar <rhino.jar> rhino-handlebars-compiler.js --handlebars <handlebars library path> --templates <templates directory> --output <output file>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage(java.io); | |
(function(args) { | |
var templateFileExtension = 'handlebars', | |
output = ['// This file is auto-generated and should be ignored from version control.\n'], | |
console = { | |
log: print | |
}, | |
showUsage = function() { | |
console.log('Usage: java -jar <rhino.jar> rhino-handlebars-compiler.js --handlebars <handlebars library path> --templates <templates directory> --output <output file>'); |