org.scalatest.package.scala Maven / Gradle / Ivy
Show all versions of scalatest_2.9.0 Show documentation
/*
* Copyright 2001-2011 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org
/**
* ScalaTest's main traits, classes, and other members, including members supporting ScalaTest's DSL for the Scala interpreter.
*/
package object scalatest {
private val defaultShell = ShellImpl()
/**
* Returns a copy of this Shell
with colorPassed
configuration parameter set to true
.
*/
lazy val color: Shell = defaultShell.color
/**
* Returns a copy of this Shell
with durationsPassed
configuration parameter set to true
.
*/
lazy val durations: Shell = defaultShell.durations
/**
* Returns a copy of this Shell
with shortStacksPassed
configuration parameter set to true
.
*/
lazy val shortstacks: Shell = defaultShell.shortstacks
/**
* Returns a copy of this Shell
with fullStacksPassed
configuration parameter set to true
.
*/
lazy val fullstacks: Shell = defaultShell.fullstacks
/**
* Returns a copy of this Shell
with statsPassed
configuration parameter set to true
.
*/
lazy val stats: Shell = defaultShell.stats
/**
* Returns a copy of this Shell
with colorPassed
configuration parameter set to false
.
*/
lazy val nocolor: Shell = defaultShell.nocolor
/**
* Returns a copy of this Shell
with durationsPassed
configuration parameter set to false
.
*/
lazy val nodurations: Shell = defaultShell.nodurations
/**
* Returns a copy of this Shell
with shortStacksPassed
configuration parameter set to false
.
*/
lazy val nostacks: Shell = defaultShell.nostacks
/**
* Returns a copy of this Shell
with statsPassed
configuration parameter set to false
.
*/
lazy val nostats: Shell = defaultShell.nostats
/**
* Convenience type alias allowing ShouldMatchers
to be used without qualification or another import
* after a wildcard import of org.scalatest
.
*/
type ShouldMatchers = matchers.ShouldMatchers
/**
* Convenience type alias allowing MustMatchers
to be used without qualification or another import
* after a wildcard import of org.scalatest
.
*/
type MustMatchers = matchers.MustMatchers
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.DuplicateTestNameException
to org.scalatest.exceptions.DuplicateTestNameException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.DuplicateTestNameException instead.")
type DuplicateTestNameException = exceptions.DuplicateTestNameException
/**
*
* This trait has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.ModifiableMessageXXX
to org.scalatest.exceptions.ModifiableMessageXXX
.
*
*/
@deprecated("Please use org.scalatest.exceptions.ModifiableMessageXXX instead.")
type ModifiableMessage[T <: Throwable] = exceptions.ModifiableMessage[T]
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.NotAllowedException
to org.scalatest.exceptions.NotAllowedException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.NotAllowedException instead.")
type NotAllowedException = exceptions.NotAllowedException
/**
*
* This trait has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepth
to org.scalatest.exceptions.StackDepth
.
*
*/
@deprecated("Please use org.scalatest.exceptions.StackDepth instead.")
type StackDepth = exceptions.StackDepth
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.StackDepthException
to org.scalatest.exceptions.StackDepthException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.StackDepthException instead.")
type StackDepthException = exceptions.StackDepthException
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestFailedException
to org.scalatest.exceptions.TestFailedException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.TestFailedException instead.")
type TestFailedException = exceptions.TestFailedException
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestPendingException
to org.scalatest.exceptions.TestPendingException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.TestPendingException instead.")
type TestPendingException = exceptions.TestPendingException
/**
*
* This class has been moved to the org.scalatest.exceptions
package. The deprecated type alias that has been left in its place will
* be removed in a future version of ScalaTest. Please change any uses of org.scalatest.TestRegistrationClosedException
to org.scalatest.exceptions.TestRegistrationClosedException
.
*
*/
@deprecated("Please use org.scalatest.exceptions.TestRegistrationClosedException instead.")
type TestRegistrationClosedException = exceptions.TestRegistrationClosedException
}