Skip to content

This repo contains the custom utilities to support Automation framework. Please go through the readme file

Notifications You must be signed in to change notification settings

beneite/JavaUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains the utilities created in java to support Automation:

Note

utility hypertext mark will navigate to respective motes.md file

Please go through the below table:

Utility Package Name Topics covered
Json Paring src/main/java/jsonParsing - JSONObject, POJO, serialization
- deserialization
- Object Mapper
- Jackson API,
- org.json.JSONObject
- org.json.simple
- Json to Excel
Database Connection src/main/java/DataBaseConnection - how to establish DB connection link
- Fetching data from DB
- Storing fetched Data into *.json
- Execute query, ExecuteUpdate
-Prepared Statements
-setAutoCommit
- Hikari CP
Password Protection src/main/java/Password_Protection - Password encryption & description
- Use char[] instead of String to store Passwords
Unix Commands src/main/java/unix_commands - Basic Unix commands
Unix Playground src/main/java/unix_playground - Shell script execution(using process builder , using plexus utils, Using JSCH)
Docker src/main/java/docker - How to create docker images
- Docker compose yaml example

Important

Points to remember:

Topics Link
@JsonProperty("field_name") - https://stackoverflow.com/questions/53191468/no-creators-like-default-construct-exist-cannot-deserialize-from-object-valu
- https://www.concretepage.com/jackson-api/jackson-jsonproperty-and-jsonalias-example
org.json.JSONObject is best in converting string to json object, json array on the fly
Password Protection Never store password in String in java instead use char[] video_link, Oracle_recommendation