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
{ | |
"$schema": "http://json-schema.org/draft-07/schema", | |
"type": "object", | |
"$id": "#root", | |
"properties": { | |
"type": { | |
"type": "string", | |
"enum": [ | |
"HorizontalLayout", | |
"VerticalLayout", |
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
package controllers; | |
import play.cache.SyncCacheApi; | |
import play.mvc.*; | |
import views.html.*; | |
import javax.inject.Inject; | |
/** |
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 LDAPUserVerifierTest extends ESTestWithMockServer { | |
@BeforeClass | |
public static void beforeClass() { | |
startEMFStore(); | |
} | |
@AfterClass | |
public static void afterClass() { | |
stopEMFStore(); |
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "Product", | |
"type": "object", | |
"properties": { | |
"id": { | |
"description": "The unique identifier for a product", | |
"type": "number" | |
}, | |
"name": { |
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
{ | |
"definitions": { | |
"writer": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"books": { | |
"type": "array", |
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
package com.example | |
import akka.actor.Actor | |
import reactivemongo.api.MongoDriver | |
import reactivemongo.bson.{BSONDocument, BSONDocumentReader, BSONObjectID, Macros} | |
import spray.httpx.SprayJsonSupport._ | |
import spray.json._ | |
import spray.routing._ | |
import scala.concurrent.Future | |
import scala.util.{Failure, Success} |
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
package rest.spray.service | |
import akka.actor.Actor | |
import reactivemongo.api.MongoDriver | |
import reactivemongo.bson.{BSONDocument, BSONDocumentReader, BSONObjectID, Macros} | |
import spray.httpx.SprayJsonSupport._ | |
import spray.json._ | |
import spray.routing._ | |
import scala.concurrent.Future |
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
trait PropertyType { | |
def price: Double | |
} | |
case class House(price: Double, noOfBedRooms: Option[Short]) extends PropertyType | |
case class Land(price: Double, area: Option[Double]) extends PropertyType | |
object House { | |
implicit val houseReads: Reads[House] = ( | |
(JsPath \ "price").read[Double] and |
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
package mytest | |
import org.specs2.execute.Details | |
import org.specs2.mutable._ | |
import org.specs2.reporter.Notifier | |
class MyNotifier extends Notifier { | |
override def exampleFailure(name: String, message: String, |
NewerOlder