Java common knowledge points of test and Development Department classes

Source: Internet
Author: User

Two languages required for testing: Java,python

Test development: Develop test scripts, develop test frameworks

Java needs to master the content: Basic syntax, Java object-oriented concepts, Java common classes, basic test framework

Java Common classes:

    • IO related classes, including:

BYTE stream Inputstream,outputstream, audio video, etc.

Character Stream Reader,writer

InputStreamReader, byte-to-character bridge

OutputStreamWriter, character-to-byte bridge

    • Collection Related classes:

Collection (interface)->list-> (ArrayList, linkedlist,vector->stack), Set

Map (interface) (Hashtable, HashMap, Weakhashmap)

Includes ArrayList implements a variable-size array that allows all elements, including null,arraylist non-synchronous

Vector similar to ArrayList, synchronous

Hashtable inherits the map interface, implements a hash table of key-value mappings, and any non-empty object can be a key or value, which is synchronous

HashMap is similar to Hashtable, except that HashMap is non-synchronous and allows NULL, which is null value and NULL key

    • Multithreading

Class Name extends Thread

Class name implements Runnable

Recommendation: Using interfaces

Benefits: Avoid single inheritance restrictions, not conducive to resource sharing

Basic Test Framework

    • JUNIT3: The purpose of junit design is to analyze code units

    • JUNIT4: Supports annotation compared to JUNIT3

    • TestNG: Intended use for advanced testing, support labeling, surface notation similar to JUNIT4

    • Common assertions: Assertequals,asserttrue/false,assertnull/notnull


This article from "Sunny" blog, reproduced please contact the author!

Java common knowledge points of test and Development Department classes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.