junit : junit 中文文档(中英对照·API·接口·操作手册·全版本)以4.13.2为例,含Maven依赖、jar包、源码

发布于: 2026-01-07 | 浏览量: 加载中...

返回开源软件分享列表
junit junit 4.13.2 API文档 接口文档 中文文档 中英对照 Java JavaDoc 操作手册 Maven依赖 Gradle依赖 Java开发 使用指南 离线文档 Java编程 寒水馨

[toc]

完整文档下载地址(类、方法、参数说明)

  1. 中文-英文对照文档:位于压缩包内的“文档”文件夹中
  2. 说明文件:使用说明.txt、README.md
  3. Maven依赖:junit-4.13.2.jar Maven依赖信息(可用于项目pom.xml).txt
  4. Gradle依赖:junit-4.13.2.jar Gradle依赖信息(可用于项目build.gradle).txt
  5. jar包下载地址:junit-4.13.2.jar下载地址(官方地址+国内镜像地址).txt
  6. 源码下载地址:junit-4.13.2-sources.jar下载地址(官方地址+国内镜像地址).txt

使用方法

  1. 解压 junit-4.13.2.jar中文-英文对照文档.zip,找到 解压后的文件夹>文档>index.html,双击index.html即可用浏览器打开查看。
  2. 为了防止解压后路径太长导致浏览器无法打开,推荐在解压时选择“解压到当前文件夹”(放心,自带文件夹,文件不会散落一地)。
  3. 有时,一套Java组件会有多个jar,所以在下载前,请仔细阅读本篇描述,以确保这就是你需要的文件。

组件信息

简介

  • 名称: JUnit
  • 描述: JUnit 是一个 Java 的单元测试框架,由 Erich Gamma 和 Kent Beck 创建。
  • 版本: 4.13.2

Maven依赖

<dependency>
	<groupId>junit</groupId>
	<artifactId>junit</artifactId>
	<version>4.13.2</version>
</dependency> 

Gradle依赖

Gradle:
	implementation group: 'junit', name: 'junit', version: '4.13.2'
Gradle (Short):
	implementation 'junit:junit:4.13.2'
Gradle (Kotlin):
	implementation("junit:junit:4.13.2") 

寒水馨 Java 组件中文文档系列说明

  • 文档为 Java 组件的中文翻译文档
  • 文档由 寒水馨 翻译整理,非官方版本
  • 本系列文档获取地址:https://hanshuixin.org
  • 本文档为人性化翻译,精心制作,请放心使用
  • 本文档为双语同时展示,一行原文、一行译文,可逐行对照,避免了原文/译文来回切换的麻烦
  • 有原文可参照,不再担心翻译偏差误导
  • 边学技术、边学英语
  • 只翻译了该翻译的内容,如:注释、说明、描述、用法讲解 等
  • 不该翻译的内容保持原样,如:类名、方法名、包名、类型、关键字、代码 等

版权声明与来源信息

本翻译文档基于以下开源项目制作,严格遵守各项目的开源许可证,并在此列出其版权归属与许可证信息。

本组件包含的 Java package(包)

junit.extensions
junit.framework
junit.runner
junit.textui
org.hamcrest
org.hamcrest.core
org.junit
org.junit.experimental
org.junit.experimental.categories
org.junit.experimental.max
org.junit.experimental.results
org.junit.experimental.runners
org.junit.experimental.theories
org.junit.experimental.theories.suppliers
org.junit.function
org.junit.matchers
org.junit.rules
org.junit.runner
org.junit.runner.manipulation
org.junit.runner.notification
org.junit.runners
org.junit.runners.model
org.junit.runners.parameterized
org.junit.validator 

本组件包含的 Java class(类)

junit.extensions.ActiveTestSuite
junit.extensions.RepeatedTest
junit.extensions.TestDecorator
junit.extensions.TestSetup
junit.framework.Assert
junit.framework.AssertionFailedError
junit.framework.ComparisonCompactor
junit.framework.ComparisonFailure
junit.framework.JUnit4TestAdapter
junit.framework.JUnit4TestAdapterCache
junit.framework.JUnit4TestCaseFacade
junit.framework.Protectable
junit.framework.Test
junit.framework.TestCase
junit.framework.TestFailure
junit.framework.TestListener
junit.framework.TestResult
junit.framework.TestSuite
junit.runner.BaseTestRunner
junit.runner.TestRunListener
junit.runner.Version
junit.textui.ResultPrinter
junit.textui.TestRunner
org.hamcrest.BaseDescription
org.hamcrest.BaseMatcher
org.hamcrest.Condition
org.hamcrest.Condition.Step
org.hamcrest.CoreMatchers
org.hamcrest.CustomMatcher
org.hamcrest.CustomTypeSafeMatcher
org.hamcrest.Description
org.hamcrest.Description.NullDescription
org.hamcrest.DiagnosingMatcher
org.hamcrest.Factory
org.hamcrest.FeatureMatcher
org.hamcrest.Matcher
org.hamcrest.MatcherAssert
org.hamcrest.SelfDescribing
org.hamcrest.StringDescription
org.hamcrest.TypeSafeDiagnosingMatcher
org.hamcrest.TypeSafeMatcher
org.hamcrest.core.AllOf
org.hamcrest.core.AnyOf
org.hamcrest.core.CombinableMatcher
org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
org.hamcrest.core.DescribedAs
org.hamcrest.core.Every
org.hamcrest.core.Is
org.hamcrest.core.IsAnything
org.hamcrest.core.IsCollectionContaining
org.hamcrest.core.IsEqual
org.hamcrest.core.IsInstanceOf
org.hamcrest.core.IsNot
org.hamcrest.core.IsNull
org.hamcrest.core.IsSame
org.hamcrest.core.StringContains
org.hamcrest.core.StringEndsWith
org.hamcrest.core.StringStartsWith
org.hamcrest.core.SubstringMatcher
org.junit.After
org.junit.AfterClass
org.junit.Assert
org.junit.Assume
org.junit.AssumptionViolatedException
org.junit.Before
org.junit.BeforeClass
org.junit.ClassRule
org.junit.ComparisonFailure
org.junit.FixMethodOrder
org.junit.Ignore
org.junit.Rule
org.junit.Test
org.junit.Test.None
org.junit.TestCouldNotBeSkippedException
org.junit.experimental.ParallelComputer
org.junit.experimental.categories.Categories
org.junit.experimental.categories.Categories.CategoryFilter
org.junit.experimental.categories.Categories.ExcludeCategory
org.junit.experimental.categories.Categories.IncludeCategory
org.junit.experimental.categories.Category
org.junit.experimental.categories.CategoryValidator
org.junit.experimental.categories.ExcludeCategories
org.junit.experimental.categories.IncludeCategories
org.junit.experimental.max.CouldNotReadCoreException
org.junit.experimental.max.MaxCore
org.junit.experimental.max.MaxHistory
org.junit.experimental.results.PrintableResult
org.junit.experimental.results.ResultMatchers
org.junit.experimental.runners.Enclosed
org.junit.experimental.theories.DataPoint
org.junit.experimental.theories.DataPoints
org.junit.experimental.theories.FromDataPoints
org.junit.experimental.theories.ParameterSignature
org.junit.experimental.theories.ParameterSupplier
org.junit.experimental.theories.ParametersSuppliedBy
org.junit.experimental.theories.PotentialAssignment
org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
org.junit.experimental.theories.Theories
org.junit.experimental.theories.Theories.TheoryAnchor
org.junit.experimental.theories.Theory
org.junit.experimental.theories.suppliers.TestedOn
org.junit.experimental.theories.suppliers.TestedOnSupplier
org.junit.function.ThrowingRunnable
org.junit.matchers.JUnitMatchers
org.junit.rules.DisableOnDebug
org.junit.rules.ErrorCollector
org.junit.rules.ExpectedException
org.junit.rules.ExternalResource
org.junit.rules.MethodRule
org.junit.rules.RuleChain
org.junit.rules.RunRules
org.junit.rules.Stopwatch
org.junit.rules.TemporaryFolder
org.junit.rules.TemporaryFolder.Builder
org.junit.rules.TestName
org.junit.rules.TestRule
org.junit.rules.TestWatcher
org.junit.rules.TestWatchman
org.junit.rules.Timeout
org.junit.rules.Timeout.Builder
org.junit.rules.Verifier
org.junit.runner.Computer
org.junit.runner.Describable
org.junit.runner.Description
org.junit.runner.FilterFactory
org.junit.runner.FilterFactory.FilterNotCreatedException
org.junit.runner.FilterFactoryParams
org.junit.runner.JUnitCore
org.junit.runner.OrderWith
org.junit.runner.OrderWithValidator
org.junit.runner.Request
org.junit.runner.Result
org.junit.runner.RunWith
org.junit.runner.Runner
org.junit.runner.manipulation.Alphanumeric
org.junit.runner.manipulation.Filter
org.junit.runner.manipulation.Filterable
org.junit.runner.manipulation.InvalidOrderingException
org.junit.runner.manipulation.NoTestsRemainException
org.junit.runner.manipulation.Orderable
org.junit.runner.manipulation.Orderer
org.junit.runner.manipulation.Ordering
org.junit.runner.manipulation.Ordering.Context
org.junit.runner.manipulation.Ordering.Factory
org.junit.runner.manipulation.Sortable
org.junit.runner.manipulation.Sorter
org.junit.runner.notification.Failure
org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
org.junit.runner.notification.RunNotifier
org.junit.runner.notification.StoppedByUserException
org.junit.runners.AllTests
org.junit.runners.BlockJUnit4ClassRunner
org.junit.runners.JUnit4
org.junit.runners.MethodSorters
org.junit.runners.Parameterized
org.junit.runners.Parameterized.AfterParam
org.junit.runners.Parameterized.BeforeParam
org.junit.runners.Parameterized.Parameter
org.junit.runners.Parameterized.Parameters
org.junit.runners.Parameterized.UseParametersRunnerFactory
org.junit.runners.ParentRunner
org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
org.junit.runners.model.Annotatable
org.junit.runners.model.FrameworkField
org.junit.runners.model.FrameworkMember
org.junit.runners.model.FrameworkMethod
org.junit.runners.model.InitializationError
org.junit.runners.model.InvalidTestClassError
org.junit.runners.model.MemberValueConsumer
org.junit.runners.model.MultipleFailureException
org.junit.runners.model.RunnerBuilder
org.junit.runners.model.RunnerScheduler
org.junit.runners.model.Statement
org.junit.runners.model.TestClass
org.junit.runners.model.TestTimedOutException
org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory
org.junit.runners.parameterized.ParametersRunnerFactory
org.junit.runners.parameterized.TestWithParameters
org.junit.validator.AnnotationValidator
org.junit.validator.AnnotationValidatorFactory
org.junit.validator.AnnotationsValidator
org.junit.validator.PublicClassValidator
org.junit.validator.TestClassValidator
org.junit.validator.ValidateWith 

完整文档下载地址(类、方法、参数说明)