1786293791

1786293791



File Edit View Navigate Codę Analyze Refactor Build Run

Bp Project    ▼    O I #’r

▼ F? my-test-app /usr/local/code/my-test-app

   Cl .gradle

►    Q .idea

▼ Cgjapp

► Cl build Cl libs ▼ Cl src

►    DandroidTest

►    Q main ▼ Cl test

▼ Qjava

▼ El com.ecgreb.mytestapp ^3 ExampleUnitTest

◄0 .gitignore

P app.iml

O build.gradle

li) proguard-rules.pro

   Cl build

   Cl gradle O .gitignore (iz build.gradle

[Jj| gradle.properties H gradlew [D gradlew.bat [III local.properties P my-test-app.iml

t*. co++innc nrarllo

Run [53 ExampleUnitTest

^ l^ll^ll la T=    t ^    t X ft D6 A

Rerun Failed Tests[ ‘    A    Li ~j *

i ▼ hxampieUnitTest (com.ecgreb.mytestapp)

O mainActivity_shouldNotBeNull O additionJsCorrect thisTestShouldFail


lools VCS Window Help @ ExampleUnitTest.java x

1    package com.ecgreb.mytestapp;

2

3    import org.junit.Test;

4

5    import static org.junit.Assert.*;


8    *    Example    local    unit    test,    which    will    execute    on    the    development    machinę    (host)

9    *

10    *    Osee    <a    href="http://d. android.com/tools/testing">Testing    documentation</a>

11    */

12    !i public class ExampleUnitTest {

13    C> @Test public void addition_isCorrect() throws Exception {

14    assertEquals(4, 2+2);

15    }

16

17    C>    @Test    public    void    mainActivity_shouldNotBeNull()    throws    Exception {

18    MainActivity mainActivity = new MainActivity();

19    assertNotNull(mainActivity);

20    }

21

22    V    @Test    public    void    thisTestShouldFail()    throws    Exception    {

23    assertNotNull(nuli);

24    }


3 tests done: 1 failed - 199ms


199ms /usr/lib/jvm/java-8-oracle/bin/java ...

171ms

Oms ±1 java.lang.AssertionError <4 internal calls>

28ms®^at com.ecgreb.mytestapp. ExampleUnitTest. thisTestShouldFail(ExampleUnitTest. java:23) <27 internal calls>


Process finished with exit codę 255


X

9




Wyszukiwarka

Podobne podstrony:
File Edit View Navigate Codę Analyze Refactor Build Run Bp
U IntelliJ IDEA File Edit View Navigate Codę Analyze Refactor Build Run Tools VCS Window Helpdr t ^
File Edit View Navigate Codę Analyze ReFactor Build Run lools VCS Window Help ED pl ED samouczekprog
File Edit View Navigate Codę Analyze ReFactor Build Run lools VC5 Window Help C3KursJava Ca 22 testy
© File Edit View Navigate Codę Analyze Refactor Build Run Tools VCS Window Help SWPBaseProject
File Edit View Navigate Codę Analyze Refactor Build Run lools VCS Window Help
File Edit View Navigate Codę Analyze Refactor Build Ryn lools VCS Window Help C3KursJava Cs 22_testy
5 (86) File Edit View Navigate Source Refąctor Run Debug Profile Team Tools Window Help Proiects Fil
6 (74) File Edit View Navigate Source Refąctor Run De Proiects FiLes r Services □ Databases li MvSQL
2 (115) File Edit View Navigate Source Refąctor Run
7 (71) File Edit View Navigate Source Refąctor Run Debug Profile Team Tools Window Help ( V -r Proie
O NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Hel
— Q Witaj - NetBeans IDE 8.2 la m
f- O Witaj 1 - NetBeans IDE 8.2 C=3 m mZmrnl File Edit View Navigate Source Refąctor Run Debug Prof
f19 2 Oracle PowerBrowser (proffitt) - [Browser: Welcome to Netscape] l-k IX File Edit View Navigate
slide0016 image071 TIA V5 - [Productl] n Start TeamPDM File Edit View Insert lools Ąnalyze Window He
n CATTA V5 - [Hexapod2.CATProduct] EN0VIAV5 File Edit View Insert Tools Ąnalyze Window Help iGround
Intel DC21140 PCI Fast Ethernet Adapter - Wireshark File Edit View Go Capture Ąnalyze Statistics Tel
zad1 0 * Oracle SQL Developer File Edit View NavigateBSBi 4PiXI □ G^Connections x Run Versioning Too

więcej podobnych podstron