Your SlideShare is downloading. ×
0
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
03 - Testowanie GUI
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

03 - Testowanie GUI

260

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
260
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Testowanie GUI1.Prezentacja kodu2.Koncepcja testowania GUI3.Passive View4.Słowo o Mockach
  • 2. Prezentacja kodu
  • 3. CECHY GUI
  • 4. TESTOWANIE PRZEZ GUI GUI RESZTA APLIKACJi
  • 5. TESTOWANIE WARSTWY GUI GUI MOCKI
  • 6. CIENKIE NIETESTOWANE GUI GUI LOGIKA GUI
  • 7. PASSIVE VIEW
  • 8. PRZYKŁAD - KLASY
  • 9. PRZYKŁAD - FLOW
  • 10. GRAF OBIEKTÓW
  • 11. INTERESUJE NAS...
  • 12. MOCKI
  • 13. RĘCZNIE UTWORZONY MOCK@Testpublic void orderShouldBeFilled() { Order order = new Order(POTATOES, 50); WarehouseMock warehouse = new WarehouseMock(); order.fill(warehouse); warehouse.verifyRemoved(POTATOES, 50);}public interface Warehouse { void remove(String product, int quantity);}
  • 14. RĘCZNIE UTWORZONY MOCKpublic class WarehouseMock implements Warehouse { private String productFromCall; private int quantityFromCall; @Override public void remove(String product, int quantity) { this.productFromCall = product; this.quantityFromCall = quantity; } public void verifyRemoved(String product, int quantity){ assertEquals(productFromCall, product); assertEquals(quantityFromCall, quantity); }}
  • 15. MOCKITO@Testpublic void orderShouldBeFilled() { Order order = new Order(POTATOES, 50); WarehouseMock warehouse = mock(Warehouse.class); order.fill(warehouse); verify(warehouse).remove(POTATOES, 50);}
  • 16. DZIĘKUJĘ Zdjęcia:[3] http://www.flickr.com/photos/sanfora/3204460930/[3] http://www.flickr.com/photos/texaseagle/2942574457[7,8,9] http://martinfowler.com/eaaDev/PassiveScreen.html

×