Amazing video!!! You are teaching two subjects at the same time - Web Development with Spring and Kotlin programming language. And third is testing. Great job! Fantastic!
@PeterSommerhoff
3 жыл бұрын
In this video, we can finally start with TDD and JUnit 5 🙌 Hope you're excited, I love the combo of Spring Boot + Kotlin + JUnit 5. Have you ever used TDD before?
@anmolsharma9539
3 жыл бұрын
Sir does " != " Works same as not equal to as i am not able to find ≠ sign
@PeterSommerhoff
3 жыл бұрын
@@anmolsharma9539 So sorry for the confusion. I'm using font ligatures, so the editor displays "!=" as "≠". So in fact I'm using "!=". I should have mentioned this, thanks for pointing it out!
@anmolsharma9539
3 жыл бұрын
@@PeterSommerhoff Thanks🤗
@vishalgaurav4411
3 жыл бұрын
No
@anmolsharma9539
3 жыл бұрын
@@vishalgaurav4411 😒
@oliveryt7168
5 ай бұрын
Amazing approach! You're an excellent teacher.
@muhohojeremy4861
2 жыл бұрын
I am a product of this Chanel from the days of php, Jquery and I am whom I am because I started here.
@Doggodoggodoggodoggo
3 жыл бұрын
Loving this series so far🥳
@PeterSommerhoff
3 жыл бұрын
Glad to hear that, thanks Francis!
@rparias
3 жыл бұрын
These videos are awesome! Thanks for sharing, I really appreciate it.
@vibinu7589
3 жыл бұрын
Very useful series!!🤩
@PeterSommerhoff
3 жыл бұрын
I'm really glad you find it helpful :)
@systemasapoyo6904
6 ай бұрын
great video, the cool thing about spring-boot that you can configure your data sources from the properties file
@kb998
2 жыл бұрын
At 11:56 in the video not getting the "it" iterator when typing it. How can I resolve it?
@andrewcapers251
2 жыл бұрын
Hey Kunal, I wasn't able to use the same syntax as Peter, but this might work for you: Make sure to import this: import java.util.function.Consumer @Test fun `Should provide mock data`(){ val banks = mockDataSource.getBanks() Assertions.assertThat(banks).allSatisfy(Consumer { it.accountNumber.isNotBlank() }) } Hope this helps!
@samandar7632
2 жыл бұрын
@@andrewcapers251 Thank you bro!
@Lwish
Жыл бұрын
@@andrewcapers251 Thanks
@AmitTiwari-wf1xj
3 жыл бұрын
Man, I thought you left KZitem. By the way happy to see you after 5 year
@Zoreens
3 жыл бұрын
This isnt bucky, his channel will now include other people too.
@trung7668
3 жыл бұрын
Hi @Peter Sommerhoff, many thanks for the mega nice tutorials !!!! do you have a more detailed, extended course (e.g. with DB migration, administration etc.) available somewhere in a learning platform ? are you from germany ? Best regards Trung
@shivamsethi3829
3 жыл бұрын
Great series
@PeterSommerhoff
3 жыл бұрын
Thanks Shivam!
@prasantkumar7693
3 жыл бұрын
Very helpful and quite nice practice
@abhimanyusharma9535
3 жыл бұрын
thankyou sir
@zr60
2 жыл бұрын
allSatisfy does not work for me....
@alexandersobolev5284
2 жыл бұрын
in `build.gradle.kts` file: tasks.compileTestKotlin { kotlinOptions.languageVersion = "1.7" } 1. then build project or rebuild project (top menu: build -> rebuild project) 2. restart your Jetbrains IDE.
@muhohojeremy4861
2 жыл бұрын
@@alexandersobolev5284 You saved me a big time. Thank you so much.
@fedked
2 жыл бұрын
@@alexandersobolev5284 I had this same problem, finally you posted. Thanks!
@ljoraanstad
Жыл бұрын
In my case it was not finding the Assertions, I had to add manually *import org.assertj.core.api.Assertions*, then it worked
@samvidjhaveri634
3 жыл бұрын
How do you check for duplicates in accountNumber? I was able to check the duplicates in Bank object with this: ` assertThat(banks.size).isEqualTo(HashSet(banks).size)` But I am not able to figure out how to check for duplicate just in accountNumber.
@PeterSommerhoff
3 жыл бұрын
Converting to a set is a good way to check for duplicates in general. You can use `banks.map { it.accountNumber }` to map a collection of banks to just their account numbers, and then work with those.
@PabloSkUK
3 жыл бұрын
Not very elegant solution, but try this: assertThat(banks.groupBy { it.accountNumber }.maxByOrNull { it.key}?.value?.size!! < 2).isEqualTo(true)
@PabloSkUK
3 жыл бұрын
Or simpler: assertThat(banks.associateBy { it.accountNumber }.size == banks.size).isTrue
Great tutorials Peter Just wanted to ask why we define an interface for the BankDataSource rather than implement the retrieveBanks function directly in the mockBankDataSource and our eventual live data sources? Is this for improved scalability or will this be answered in later episodes?
@jianhaoluo9491
3 жыл бұрын
Hi, Peter, can you provide more details about live test template? especially the variable meaning
@stronglonggg
2 жыл бұрын
Here you go: @Test fun `shoud $DESCRIPTION$` () { // given $GIVEN$ // when $WHEN$ // then $THEN$ }
@abdelhalimelmenshawi7091
Жыл бұрын
ganna make a full spring boot and hibernate course in kotlin soon? or have a recommendation at least? thx
@ilyrican
3 жыл бұрын
Hey Peter, really cool video series. I'm a bit confused about the architecture layers. Shouldn't the data layer precede the data-source layer? If I understood correctly, the data layer consists of the model, serialization etc. represented by the data classes in kotlin and the data source which could be a DB. In other words web layer -> service layer -> data layer -> data-source layer instead of web layer -> service layer -> data-source layer -> data layer ?
@PeterSommerhoff
3 жыл бұрын
Not quite sure what that would look like. The responsibility of the data source is to know how to retrieve entities (from wherever) so it uses the entities. Maybe the terminology is not ideal, the data source is not really a separate architectural layer but rather part of what we would call a "data layer".
@teajay88
3 жыл бұрын
Can you run the tests using IntelliJ IDEA, not Gradle
@PeterSommerhoff
3 жыл бұрын
Yes you can, just go to your settings and under "Build, Execution, Deployment" > "Gradle" you can select to run tests using either IntelliJ or Gradle. In fact, we'll do this in a later video because it allows output of JUnit 5's @DisplayName.
@smonkey001
3 жыл бұрын
imo, very strong one, it's these pointless tests and premature layering that drives ppl to things like Node. It's a standard crud REST and I bet you gonna use Spring Data. There is no benefit to write tests against Spring Data's implementation.
@PeterSommerhoff
3 жыл бұрын
Whether you think about architecture and whether you write tests or not is completely independent of what programming languages, frameworks, or libraries you use. Also, we don't use Spring Data here and we're not testing Spring Data's implementation. But you're right that that would be pointless.
@tejasshah8248
2 жыл бұрын
assertThat is not coming what is alternative?
@muhohojeremy4861
2 жыл бұрын
use import org.assertj.core.api.Assertions
@anmolsharma9539
3 жыл бұрын
How he does not equal sign while testing the trust Field i am stuck there🤔
@PeterSommerhoff
3 жыл бұрын
Sorry again, I'm using font ligatures so it's really just "!=" but displayed in the editor as "≠".
@zr60
2 жыл бұрын
anyMatch != 0 is such a bad coding practise, what if you want to check if it's negative? AllMatch > 0 is such a better way to write it.
@abhaypratapsingh6905
3 жыл бұрын
1st view❤️🙏🏻👑
@PeterSommerhoff
3 жыл бұрын
Nicely done, thanks for watching! 😀
@gunslingerarthur5865
3 жыл бұрын
This isnt bucky's voice who is it?
@Zoreens
3 жыл бұрын
Check part 1. Also his channel will now include other people too.
@PeterSommerhoff
3 жыл бұрын
@Zoreens That's me 😀 Yeah, Bucky is building a whole community around thenewboston, including collabs on this channel.
@s.aravindh6227
3 жыл бұрын
Python remote control exploit create small tutorial video
Пікірлер: 62