An Entity of Type: software, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

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}

Property Value
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
  • 9403814 (xsd:integer)
dbo:wikiPageLength
  • 1465 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1123511599 (xsd:integer)
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
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License