CDI-Unit-Tests-EasyMock

CDI-Unit test suite.

Лицензия

Лицензия

Группа

Группа

org.jglue.cdi-unit
Идентификатор

Идентификатор

cdi-unit-tests-easymock
Последняя версия

Последняя версия

3.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

CDI-Unit-Tests-EasyMock
CDI-Unit test suite.

Скачать cdi-unit-tests-easymock

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.jglue.cdi-unit/cdi-unit-tests-easymock/ -->
<dependency>
    <groupId>org.jglue.cdi-unit</groupId>
    <artifactId>cdi-unit-tests-easymock</artifactId>
    <version>3.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.jglue.cdi-unit/cdi-unit-tests-easymock/
implementation 'org.jglue.cdi-unit:cdi-unit-tests-easymock:3.0.1'
// https://jarcasting.com/artifacts/org.jglue.cdi-unit/cdi-unit-tests-easymock/
implementation ("org.jglue.cdi-unit:cdi-unit-tests-easymock:3.0.1")
'org.jglue.cdi-unit:cdi-unit-tests-easymock:jar:3.0.1'
<dependency org="org.jglue.cdi-unit" name="cdi-unit-tests-easymock" rev="3.0.1">
  <artifact name="cdi-unit-tests-easymock" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jglue.cdi-unit', module='cdi-unit-tests-easymock', version='3.0.1')
)
libraryDependencies += "org.jglue.cdi-unit" % "cdi-unit-tests-easymock" % "3.0.1"
[org.jglue.cdi-unit/cdi-unit-tests-easymock "3.0.1"]

Зависимости

provided (1)

Идентификатор библиотеки Тип Версия
org.easymock : easymock jar 3.2

test (3)

Идентификатор библиотеки Тип Версия
org.jglue.cdi-unit : cdi-unit jar 3.0.1
org.jboss.weld.se : weld-se jar 2.1.0.Final
junit : junit jar 4.8.2

Модули Проекта

Данный проект не имеет модулей.

cdi-unit

Unit testing for CDI applications. Supports Mockito for mocking dependencies.

See website for full details http://cdi-unit.github.io/cdi-unit

Discussion can be found here https://groups.google.com/forum/#!forum/cdi-unit

Maven Central

<dependency>
  <groupId>org.jglue.cdi-unit</groupId>
  <artifactId>cdi-unit</artifactId>
  <version>${cdi-unit-version}</version>
  <scope>test</scope>
</dependency>
class Starship {
 
  @Inject
  Engine engine; //We don't know the exact engine that this ship will have.
 
  void start() {
    engine.start();
  }
}

@RunWith(CdiRunner.class)
@AdditionalClasses(WarpDrive.class) // WarpDrive is available to use.
class TestStarship {
 
  @Inject
  Starship starship;
 
  @Test
  public void testStart() {
    starship.start(); // Going to warp!
  }
}

Acknowledgements

This project uses code shamelessly copied from:

Mockrunner under Apache license. Resteasy under Apache license.

License

Copyright 2013 Bryn Cooke

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.

Версии библиотеки

Версия
3.0.1
3.0.0
2.2.1
2.2.0
2.1.1