<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Junit5 on 飞狐的部落格</title>
    <link>https://lucumt.info/tags/junit5/</link>
    <description>Recent content in Junit5 on 飞狐的部落格</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 24 Mar 2025 10:18:30 +0800</lastBuildDate>
    <atom:link href="https://lucumt.info/tags/junit5/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>利用SpringBoot3与JUnit5进行单元测试时依赖注入对象报空指针</title>
      <link>https://lucumt.info/post/junit/autowire-object-is-null-when-run-maven-test/</link>
      <pubDate>Mon, 24 Mar 2025 10:18:30 +0800</pubDate>
      <guid>https://lucumt.info/post/junit/autowire-object-is-null-when-run-maven-test/</guid>
      <description>&lt;p&gt;近期有个项目采用了&lt;a href=&#34;https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes&#34;&gt;&lt;strong&gt;SpringBoot3&lt;/strong&gt; &lt;/a&gt;以及&lt;a href=&#34;https://junit.org/junit5&#34;&gt;&lt;strong&gt;JUnit5&lt;/strong&gt;&lt;/a&gt;进行单元测试，在此过程中一直提示&lt;code&gt;Spring&lt;/code&gt;中依赖注入报错的问题，该问题的解决方案比较特殊，主要是升级&lt;a href=&#34;https://maven.apache.org/surefire/maven-surefire-plugin&#34;&gt;&lt;strong&gt;maven-surefire-plugin&lt;/strong&gt;&lt;/a&gt;的版本，故简单记录下。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]Junit 5 预期异常 - 如何检测异常是否抛出</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-expected-exception/</link>
      <pubDate>Sun, 02 Jul 2023 14:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-expected-exception/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-expected-exception/&#34;&gt;&lt;strong&gt;JUnit 5 Expected Exception: How to assert an exception is thrown?&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit5 Gradle示例 - 基于Gradle运行测试</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-gradle-example/</link>
      <pubDate>Tue, 27 Jun 2023 14:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-gradle-example/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-gradle-example/&#34;&gt;&lt;strong&gt;JUnit 5 Gradle Example&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit5 Maven示例-基于Surefire运行测试</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-maven-example/</link>
      <pubDate>Fri, 23 Jun 2023 12:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-maven-example/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-maven-example/&#34;&gt;&lt;strong&gt;JUnit 5 Maven Example: Running Tests with Surefire&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]从JUnit 4 迁移到JUnit 5 - 权威指南</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-migration/</link>
      <pubDate>Wed, 21 Jun 2023 22:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-migration/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-migration/&#34;&gt;&lt;strong&gt;Migrating From JUnit 4 to JUnit 5: A Definitive Guide&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit5 整合Kotlin</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-kotlin/</link>
      <pubDate>Wed, 21 Jun 2023 19:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-kotlin/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-kotlin//&#34;&gt;&lt;strong&gt;JUnit 5 With Kotlin for Java Developers&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]在JUnit 5中使用Mockito</title>
      <link>https://lucumt.info/post/translate/junit5/using-mockito-in-junit5/</link>
      <pubDate>Mon, 19 Jun 2023 19:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/using-mockito-in-junit5/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-mockito/&#34;&gt;&lt;strong&gt;Using Mockito With JUnit 5&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit 5 参数化测试实用指南</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-parameterized-tests/</link>
      <pubDate>Sat, 17 Jun 2023 09:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-parameterized-tests/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-parameterized-tests/&#34;&gt;&lt;strong&gt;A More Practical Guide to JUnit 5 Parameterized Tests&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit 5 生命周期 - 注释之前和之后</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-test-lifecycle/</link>
      <pubDate>Fri, 16 Jun 2023 19:21:43 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-test-lifecycle/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-test-lifecycle/&#34;&gt;&lt;strong&gt;JUnit 5 Test Lifecycle: Before and After Annotations&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit 5 嵌套测试 - 将关联的测试分组在一起</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-nested-tests/</link>
      <pubDate>Tue, 02 May 2023 13:12:24 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-nested-tests/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-nested-tests/&#34;&gt;&lt;strong&gt;JUnit 5 Nested Tests: Grouping Related Tests Together&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit 5 断言 - 验证测试结果</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-assertions/</link>
      <pubDate>Mon, 01 May 2023 13:37:22 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-assertions/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-assertions/&#34;&gt;&lt;strong&gt;JUnit 5 Assertions: Verifying Test Results&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[译]JUnit 5 入门 - 编写第一段测试代码</title>
      <link>https://lucumt.info/post/translate/junit5/junit-5-getting-started/</link>
      <pubDate>Mon, 01 May 2023 09:51:22 +0800</pubDate>
      <guid>https://lucumt.info/post/translate/junit5/junit-5-getting-started/</guid>
      <description>&lt;p&gt;本文翻译自&lt;a href=&#34;https://www.arhohuttunen.com/junit-5-getting-started&#34;&gt;&lt;strong&gt;Getting Started with JUnit 5: Writing Your First Test&lt;/strong&gt;&lt;/a&gt;。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
