/*
 * 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 wvlet.airframe.spec

import wvlet.airframe.spec.spi.AirSpec
import wvlet.airframe.{Design, _}
import wvlet.log.LogSupport

/**
  *
  */
class TestSpec extends AirSpec with LogSupport {
  info("test spec")

  override protected def design: Design =
    newDesign
      .bind[String].toInstance("my message")

  def hello(m: String): Unit = {
    info(m)
    assert(m == "my message")
  }
}

object TestObjSpec extends AirSpec with LogSupport {
  def objectMethod: String = {
    info("hello companion methods")
    "hello obj"
  }
}

/*
 * 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 wvlet.airframe.spec

import wvlet.airframe.spec.spi.AirSpec
import wvlet.airframe.{Design, _}
import wvlet.log.LogSupport

/**
  *
  */
class TestSpec extends AirSpec with LogSupport {
  info("test spec")

  override protected def design: Design =
    newDesign
      .bind[String].toInstance("my message")

  def hello(m: String): Unit = {
    info(m)
    assert(m == "my message")
  }

  def `support free-style test description`: Unit = {
    info("hello")
  }

}

object TestObjSpec extends AirSpec with LogSupport {
  def objectMethod: String = {
    info("hello companion methods")
    "hello obj"
  }
}

Add free-style test description example
Add free-style test description example
