This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Generate Random GUID | |
| def guidVal = "${java.util.UUID.randomUUID()}" | |
| // Get current date and time in milliseconds | |
| now = Calendar.instance | |
| log.info 'now is a ' + now.class.name | |
| date = now.time | |
| log.info 'date is a ' + date.class.name + ' with value ' + date | |
| millis = date.time | |
| log.info 'millis is a ' + millis.class.name + ' with value ' + millis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ca.uwo.csd.cs2212.USERNAME; | |
| public class BankAccount { | |
| private double balance; | |
| public BankAccount(double balance) { | |
| this.balance = balance; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cloning a remote repository (SSH) | |
| git clone <user@server:path/to/repo.git> | |
| e.g. git clone git@github.com:TomyJaya/git-real.git | |
| # Cloning a remote repository (https) | |
| git clone <URL> | |
| e.g. git clone https://github.com/TomyJaya/git-real.git | |
| # Checking the Status of Your Files | |
| git status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.commons.collections.ListUtils; | |
| import org.apache.commons.io.FileUtils; | |
| import org.apache.commons.lang.StringUtils; | |
| import org.apache.log4j.Logger; | |
| import org.openqa.selenium.By; |