Stappenplan code.........................................................................................................................21
MVC – Model-View-Controller.............................................................................................................22
Nut................................................................................................................................................22
Voorbeeld.....................................................................................................................................22
Stappenplan..................................................................................................................................22
Stappenplan code.........................................................................................................................22
Test Driven Development.........................................................................................................24
TDD.......................................................................................................................................................24
Nut TDD........................................................................................................................................24
TDD workflow...............................................................................................................................24
Test first programming.................................................................................................................24
Junit......................................................................................................................................................25
Stappenplan..................................................................................................................................25
Voorbeeld.....................................................................................................................................25
Wat testen? (algemeen)...............................................................................................................26
Wat testen? (verzamelingen).......................................................................................................26
Wat testen? (Strings)....................................................................................................................26
Static-methoden in de klasse Assertions......................................................................................28
@Test methoden: tips..................................................................................................................28
Test Fixtures.................................................................................................................................28
Parameterized Test.......................................................................................................................30
Parameterized Test – voorbeeld csv source.................................................................................30
Parameterized Test – voorbeeld nullandemptysource.................................................................30
Parameterized Test – voorbeeld methodsource...........................................................................31
Mockito................................................................................................................................................33
Mock.............................................................................................................................................33
Voorbeeld LandService.................................................................................................................33
Unit tesing with Mock Objects..............................................................................................................37
Dependencies...............................................................................................................................37
Mock object..................................................................................................................................37
Dependency injection..................................................................................................................37
Testen met mocks.........................................................................................................................38
JAVA..........................................................................................................................................39
Collections & Streams...........................................................................................................................39
Het collection framework (algemeen ig?).........................................................................................39
Map implementaties........................................................................................................................41
, 3
Map..............................................................................................................................................42
Map.entry<K,V>............................................................................................................................43
Wrappers..........................................................................................................................................43
Synchronized wrapper..................................................................................................................43
Unmodifiable wrapper..................................................................................................................43
Checked wrapper..........................................................................................................................43
Generics................................................................................................................................................45
Inleiding............................................................................................................................................45
Generieke methoden........................................................................................................................45
Voorbeeld.....................................................................................................................................45
Upperbound en return type en.....................................................................................................45
Overloaded generieke methoden.................................................................................................46
Generieke klassen.............................................................................................................................46
Voorbeeld.....................................................................................................................................46
Wildcards......................................................................................................................................46
Lowerbounds................................................................................................................................46
Overerving....................................................................................................................................46
MVC - Observer Pattern........................................................................................................................48
MVC..................................................................................................................................................48
MVC – architectuur.......................................................................................................................48
Observer-patroon.............................................................................................................................48
Voorbeeld.....................................................................................................................................48
Netwerken............................................................................................................................................49
Inleiding............................................................................................................................................49
Netwerkmogelijkheden................................................................................................................49
Client – server...............................................................................................................................49
Overig...........................................................................................................................................49
Socket-programmeren met TCP.......................................................................................................49
......................................................................................................................................................49
Server met Stream sockets opzetten............................................................................................50
Client met Stream Sockets opzetten.............................................................................................50
Opmerkingen................................................................................................................................50
Connectieloze transmissie met datagrammen.................................................................................51
Methods.......................................................................................................................................51
Opzetten (zelfde proces client als server).....................................................................................51
, 4
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller easyIT. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $5.43. You're not tied to anything after your purchase.