Explore tweets tagged as #Mockmvc
@sivalabs
Siva
11 months
#SpringBoot 3.4.0 introduced MockMvcTester to simplify MockMvc usage and also supports AssertJ assertions. Looks cool 🚀
4
51
341
@QuarkusIO
Quarkus
2 months
Testing REST APIs in Quarkus: Faster, Real, and Production-Ready A hands-on guide for Java developers moving beyond Spring’s MockMvc to Quarkus and RestAssured https://t.co/3JLyKHAda0
0
5
13
@SamProgramiz
SamProgramiz
2 years
MockMvcBuilders allow us to create a test environment that emulates Spring MVC (mockMvc). You can plugin viewResolvers or isolate the test to one controller for the test MockMVC builders support two modes, `standaloneSetup` and `webContextSetup` Old Guard EP008
0
1
7
@snicoll
Stéphane Nicoll
1 year
Review on our AssertJ support for MockMvc continues. In this milestone, bye bye static imports! MockMvcTester allows you to build the query using a fluent API as well:
3
12
43
@suke_masa
Masatoshi Tada
2 years
error/404.htmlがMockMvcでテストできない件、公式リファレンスに載ってた https://t.co/g1N3Og1Kqh
0
1
5
@belyaev_andrey
Andrey Belyaev
11 days
In the upcoming @intellijidea release, the IDE will help you to configure versioning for controllers in your app and mockmvc in your tests 😉
@therealdanvega
Dan Vega
12 days
Just dropped a new video showing off one of my favorite features coming in Spring Framework 7: the Rest Test Client! This makes resting APIs so much easier with one API for everything: unit tests, integration tests, and full server tests. Watch me build tests in minutes:
0
3
6
@kenyanJug
KenyaJug🇰🇪
6 months
🚨 Kenya JUG this Saturday's session is ON! 🎯 Topic: Mastering IoC and DI - @Mungunoble 🎯 End-to-End API Testing with MockMVC - Samuel Owino 🗓️ 10th May | 🕗 8:00–9:30 PM 📍 Google Meet RSVP → https://t.co/iHIDAUWGAy #JavaKe #KenyaJUG #SpringBoot #MockMVC #developers
0
11
11
@arturolgdev
arturolgdev
2 months
Hace poco migré un servicio de Spring Boot 2 → 3. Aquí van 3 cosas que me hubiera gustado saber antes 👇 1️⃣ Cambios en Jakarta EE – todos los imports cambian de javax.* a jakarta.*. 2️⃣ Si usas Hibernate, revisa la compatibilidad. 3️⃣ Los tests con MockMvc pueden romperse.
0
0
1
@theRealMondongo
𝚂𝚑𝚊𝚠𝚗 𝙺 𝙱𝚎𝚌𝚔
2 years
Day 55 of #100DaysOfCode: API Endpoint 🛠 Set up a Spring Boot application with Kotlin, creating the main class and RESTful endpoints. ✅ Wrote JUnit 5 unit tests for API endpoints using MockMvc. 🌐 Successfully tested the /api/banks endpoint, which returned JSON account data.
0
0
15
@jitterted
Ted M. Young maker of tdd.cards
2 years
OMG, finally we can do things like: assertThat(mockMvc.perform(post("/increase"))) .body() .isEqualTo("counter 43"); 🎉 #AssertJ 🥳
@stefanocodes
Stefano Cordio
2 years
We really appreciate the trust of the @springframework team! 🙇 Want to see a real-world example of custom AssertJ assertions? Be sure to check out how they did it: https://t.co/W2tPvdo1Gj
2
15
52
@kenyanJug
KenyaJug🇰🇪
7 months
This Saturday, we’re spotlighting what you voted for! 💡 ✅ Spring IoC & DI ✅ e2e Testing with MockMVC Are you a Java enthusiast ready to share your expertise on one of these? Here’s your chance to shine at Kenya JUG 🔥 🎤 Apply: https://t.co/TVQ9d5igEy #JavaKe #KenyaJUG
@kenyanJug
KenyaJug🇰🇪
7 months
Hey 👋 KenyaJUG Community! We're planning our next virtual session and would love your input! Which topic would you like us to cover in the next #VirtualTalks? #JavaCommunity #KenyaJUG
0
3
4
@Myrtille231115
うえた
1 year
JUnitのテストアノテーションは この目次にあるのは一通り動かしてみた。 初見やしサンプルコードみたいなのやから いずれちゃんとしたコードの中で実装したい 今からライフサイクルメソッドと アサーションメソッドに関するとこ テストの最終目標は MockMvcでHTTPの挙動に関するとこする
1
0
7
@sivalabs
Siva
7 months
Spring Framework 6.2 introduced MockMvcTester to support writing AssertJ style assertions while testing with MockMvc. https://t.co/wdmhp4i3HB In this article, I have covered: ✨Testing REST API JSON response ✨Testing REST API exception handling ✨Testing the Thymeleaf view
0
13
39
@AngelieCrown
橘きか
1 year
春になると家庭菜園で花弁を楽しむのが至福の時。花畑のような美しい光景が庭に広がり、心が満たされる。.MockMvcの香りも魅力的で、花が咲く度に幸せな気持ちに包まれる。 #家庭菜園 #花弁
0
0
2
@javacodegeeks
Java Code Geeks
2 years
#Testing #JSON in #Spring Boot with MockMvc and JsonPath - #Java Code Geeks
0
5
28
@tschuehly
Thomas Schilling
2 years
Anyone on here already used @HtmlUnit with @htmx_org and @springframework MockMvc. It just doesn't create Ajax Requests. cc @jitterted
1
0
1
@kimukou2628
close_yutori
3 days
#jjug_ccc #jjug_ccc_gh リクエストハンドリング 実際ちゃんとリクエストハンドリングの開発者テストするなら  テスト => MockMVC => モック(MockIto) で作る? ただその場合 検出したい不具合は何? を考えないとブレる 正常系保証するテストって意味ある?ってのは確かに 確かに・・・
0
0
1
@techaffinity
TechAffinity | #BeFutureReady
1 year
Spring Boot 3.4.0-M1 has been released. This release brings 118 enhancements, documentation improvements, dependency upgrades, and bug fixes. Key features include Structured Logging, AssertJ support for MockMvc with auto-configuration of MockMvcTester, and enhanced support for
0
0
0
@suke_masa
Masatoshi Tada
2 years
書いたよ MockMvcではerror/404.htmlやerror.htmlをテスト不可能 。その理由と代替策 https://t.co/nCRCa76spb #Qiita
3
3
15
@wimdeblauwe
Wim Deblauwe
4 months
🧪 New blog: How I test production-ready Spring Boot applications Comprehensive testing strategy covering: - Use case tests with in-memory repos - JPA tests with Testcontainers - Controller tests with MockMvc - Integration tests - ArchUnit Full guide:
2
9
45