This file contains hidden or 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
@ApiModel("Outage Message") | |
public class OutageDto { | |
private String applicationName; | |
private DateTime outageDate; | |
private String message; | |
public OutageDto() {} | |
public OutageDto(Locale locale, Outage outage) { | |
this.applicationName = "My App"; | |
this.outageDate = new DateTime(outage.getStartTime()); |
This file contains hidden or 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
@EnableSwagger | |
@Configuration | |
public class SwaggerConfig { | |
@Autowired | |
private SpringSwaggerConfig springSwaggerConfig; | |
@Autowired | |
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) { | |
this.springSwaggerConfig = springSwaggerConfig; |
This file contains hidden or 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
@ApiModel("Outage Message") | |
public class OutageDto { | |
private String applicationName; | |
private DateTime outageDate; | |
private String message; | |
public OutageDto() {} |
This file contains hidden or 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
resolvers += Classpaths.typesafeResolver | |
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0") | |
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.7.0") |
This file contains hidden or 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
# Set up USER's home directory | |
# Don't want our H:\ as our bash home, that's on a network which is slow | |
#if [ -z "$HOME" -o ! -d "$HOME" ]; then | |
# HOME="$HOMEDRIVE$HOMEPATH" | |
# if [ -z "$HOME" -o ! -d "$HOME" ]; then | |
HOME="$USERPROFILE" | |
# fi | |
#fi |
This file contains hidden or 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
val matchingNodes = for ( | |
(node1, node2) <- node1List zip node2List | |
) yield compare(node1, node2) |
This file contains hidden or 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
Router.map(function() { | |
this.route('workspace'); | |
this.route('cart'); | |
this.resource('file-details', {path: '/file-details/:folder_id'}, function() { | |
this.resource('file-contents', function() { | |
this.route('details', {path: '/:id'}); | |
}); | |
this.resource('file-search', {path:'search-and-order'}, function() { | |
// TODO: when filesearch is implemented you will need to add resources for 'titles' and |
This file contains hidden or 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
test('it has the right css class when the cart is empty', function() { | |
expect(2); | |
var component = this.subject({ | |
cartEmpty: false | |
}); | |
this.append(); | |
ok(component.$().find('#cartCheckoutLink').length, 'The view-cart component should be enabled if the cart is not empty'); |