rapture
.
json
.
test
JsonTests
Related Doc:
package test
abstract
class
JsonTests
extends
TestSuite
Linear Supertypes
TestSuite
,
AnyRef
,
Any
Known Subclasses
ArgonautTests
,
CirceTests
,
JacksonTests
,
JawnTests
,
Json4sTests
,
LiftTests
,
PlayTests
,
SprayTests
Ordering
Alphabetic
By inheritance
Inherited
JsonTests
TestSuite
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
JsonTests
(
ast:
JsonAst
,
parser:
Parser
[
String
,
JsonAst
]
)
Type Members
abstract
class
Test
extends
TestCase
Definition Classes
TestSuite
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
val
Check missing value failure
:
Test
val
Check type failure
:
Test
val
Empty array serialization
:
Test
{ type Return = String }
val
Empty object doesn't match
:
Test
val
Empty object serialization
:
Test
{ type Return = String }
val
Extract Boolean
:
Test
{ type Return = Boolean }
val
Extract Double
:
Test
{ type Return = Double }
val
Extract Int
:
Test
{ type Return = Int }
val
Extract List element
:
Test
{ type Return = Int }
val
Extract List[Int]
:
Test
{ type Return = List[Int] }
val
Extract Option[Int]
:
Test
{ type Return = Option[Int] }
val
Extract Option[Int], wrong type
:
Test
{ type Return = Option[Int] }
val
Extract String
:
Test
{ type Return = String }
val
Extract Vector[Int]
:
Test
{ type Return = scala.collection.immutable.Vector[Int] }
val
Extract case class
:
Test
{ type Return = rapture.json.test.Foo }
val
Extract case class ignoring default value
:
Test
{ type Return = rapture.json.test.HasDefault2 }
val
Extract case class with missing optional value
:
Test
{ type Return = rapture.json.test.Baz }
val
Extract case class with missing tried value
:
Test
{ type Return = rapture.json.test.Baz2 }
val
Extract case class with present optional value
:
Test
{ type Return = rapture.json.test.Baz }
val
Extract case class with present tried value
:
Test
{ type Return = rapture.json.test.Baz2 }
val
Extract deeply-nested case class
:
Test
{ type Return = rapture.json.test.A }
val
Extract nested case class
:
Test
{ type Return = rapture.json.test.Bar }
val
Extract object element
:
Test
{ type Return = String }
val
Extract value called "self"
:
Test
{ type Return = Int }
val
Extracting Option should not throw exception
:
Test
{ type Return = Option[String] }
val
Filtered failed match
:
Test
val
Filtered match
:
Test
{ type Return = String }
val
Inner filtered match
:
Test
{ type Return = Double }
val
Match inner JSON
:
Test
{ type Return = rapture.data.DataType[rapture.json.Json,rapture.data.DataAst] }
val
Match inner string
:
Test
{ type Return = String }
val
Match string
:
Test
{ type Return = String }
val
Multiple pattern match
:
Test
{ type Return = Int }
val
Serialize array
:
Test
{ type Return = String }
val
Serialize int
:
Test
{ type Return = String }
val
Serialize object
:
Test
{ type Return = String }
val
Serialize string
:
Test
{ type Return = String }
val
Tabs should be escaped when serializing strings
:
Test
{ type Return = String }
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
implicit
def
implicitAst
:
JsonAst
implicit
def
implicitParser
:
Parser
[
String
,
JsonAst
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
source1
:
Json
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
test
[
T
]
(
act: ⇒
T
)
:
Test
{ type Return = T }
Definition Classes
TestSuite
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
TestSuite
Inherited from
AnyRef
Inherited from
Any
Ungrouped