dbo:abstract
|
- Self-testing code is software that incorporates built-in tests (see test-first development). In Java, to execute a unit test from the command line, a class can have methods like the following. // Executing main runs the unit test. public static void main(String[] args) { test;}static void test { assert foo == bar;} To invoke a full system test, a class can incorporate a method call. public static void main(String[] args) { test; TestSuite.test; // invokes full system test} In addition, Java has some Jupiter API libraries for self-testing code. assert can be used in various ways such as assert equals, which checks if the given variable is equal to the value given. @Testvoid checkplayer { Board board = new Board(10); board.addplayer(1); int check = board.getCurrentPlayer(1); assertEquals(1, check); } (en)
- Самотестирующийся код (от англ. Self-testing code) — программное обеспечение, включающее в себя встроенные тесты (смотри Разработка через тестирование). В языке Java, для выполнения модульных тестов из командной строки класс может иметь методы наподобие следующих: // Выполнение main запускает тест модуля. public static void main(String[] args) { test;}static void test { assert foo == bar;} Для вызова полного системного теста класс может содержать вызов метода: public static void main(String[] args) { test; TestSuite.test; // вызов полного системного теста} (ru)
|
dbo:wikiPageExternalLink
| |
dbo:wikiPageID
| |
dbo:wikiPageLength
|
- 1465 (xsd:nonNegativeInteger)
|
dbo:wikiPageRevisionID
| |
dbo:wikiPageWikiLink
| |
dbp:wikiPageUsesTemplate
| |
dcterms:subject
| |
gold:hypernym
| |
rdf:type
| |
rdfs:comment
|
- Самотестирующийся код (от англ. Self-testing code) — программное обеспечение, включающее в себя встроенные тесты (смотри Разработка через тестирование). В языке Java, для выполнения модульных тестов из командной строки класс может иметь методы наподобие следующих: // Выполнение main запускает тест модуля. public static void main(String[] args) { test;}static void test { assert foo == bar;} Для вызова полного системного теста класс может содержать вызов метода: public static void main(String[] args) { test; TestSuite.test; // вызов полного системного теста} (ru)
- Self-testing code is software that incorporates built-in tests (see test-first development). In Java, to execute a unit test from the command line, a class can have methods like the following. // Executing main runs the unit test. public static void main(String[] args) { test;}static void test { assert foo == bar;} To invoke a full system test, a class can incorporate a method call. public static void main(String[] args) { test; TestSuite.test; // invokes full system test} (en)
|
rdfs:label
|
- Self-testing code (en)
- Самотестирующийся код (ru)
|
owl:sameAs
| |
prov:wasDerivedFrom
| |
foaf:isPrimaryTopicOf
| |
is dbo:wikiPageWikiLink
of | |
is foaf:primaryTopic
of | |