From cce71787253d245825ebd4596698c8604870cde6 Mon Sep 17 00:00:00 2001 From: Kevin Siek Widjanarko <68268846+KevinSiek@users.noreply.github.com> Date: Mon, 7 Mar 2022 21:17:02 +0700 Subject: [PATCH 1/2] Add Project Java Bootcamp Day 1 --- onboarding-java/HELP.md | 14 + onboarding-java/mvnw | 316 ++++++++++++++++++ onboarding-java/mvnw.cmd | 188 +++++++++++ onboarding-java/pom.xml | 47 +++ .../OnboardingJavaDay1Application.java | 13 + .../two/onboardingjava/calc/Calculator.java | 31 ++ .../onboardingjava/project/BubbleSort.java | 19 ++ .../two/onboardingjava/project/Calendar.java | 27 ++ .../two/onboardingjava/project/Factorial.java | 16 + .../onboardingjava/project/LetterGrade.java | 35 ++ .../two/onboardingjava/todoList/TodoList.java | 48 +++ .../src/main/resources/application.properties | 1 + .../OnboardingJavaDay1ApplicationTests.java | 13 + .../onboardingjava/calc/CalculatorTest.java | 77 +++++ .../project/BubbleSortTest.java | 18 + .../onboardingjava/project/CalendarTest.java | 111 ++++++ .../onboardingjava/project/FactorialTest.java | 59 ++++ .../project/LetterGradeTest.java | 83 +++++ .../onboardingjava/todoList/TodoListTest.java | 72 ++++ .../target/classes/application.properties | 1 + .../OnboardingJavaDay1Application.class | Bin 0 -> 827 bytes .../two/onboardingjava/calc/Calculator.class | Bin 0 -> 1278 bytes .../onboardingjava/project/BubbleSort.class | Bin 0 -> 705 bytes .../two/onboardingjava/project/Calendar.class | Bin 0 -> 1132 bytes .../onboardingjava/project/Factorial.class | Bin 0 -> 901 bytes .../onboardingjava/project/LetterGrade.class | Bin 0 -> 1071 bytes .../onboardingjava/todoList/TodoList.class | Bin 0 -> 1360 bytes .../OnboardingJavaDay1ApplicationTests.class | Bin 0 -> 625 bytes .../onboardingjava/calc/CalculatorTest.class | Bin 0 -> 3267 bytes .../project/BubbleSortTest.class | Bin 0 -> 999 bytes .../onboardingjava/project/CalendarTest.class | Bin 0 -> 3996 bytes .../project/FactorialTest.class | Bin 0 -> 2656 bytes .../project/LetterGradeTest.class | Bin 0 -> 3317 bytes .../todoList/TodoListTest.class | Bin 0 -> 2913 bytes 34 files changed, 1189 insertions(+) create mode 100644 onboarding-java/HELP.md create mode 100644 onboarding-java/mvnw create mode 100644 onboarding-java/mvnw.cmd create mode 100644 onboarding-java/pom.xml create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSort.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.java create mode 100644 onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoList.java create mode 100644 onboarding-java/src/main/resources/application.properties create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/calc/CalculatorTest.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSortTest.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/CalendarTest.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.java create mode 100644 onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.java create mode 100644 onboarding-java/target/classes/application.properties create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSort.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.class create mode 100644 onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoList.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/calc/CalculatorTest.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSortTest.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/CalendarTest.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.class create mode 100644 onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.class diff --git a/onboarding-java/HELP.md b/onboarding-java/HELP.md new file mode 100644 index 0000000..512a81b --- /dev/null +++ b/onboarding-java/HELP.md @@ -0,0 +1,14 @@ +# Read Me First +The following was discovered as part of building this project: + +* The original package name 'com.gdn.onboarding.java.two.onboarding-java' is invalid and this project uses 'com.gdn.onboarding.java.two.onboardingjava' instead. + +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) +* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.6.4/maven-plugin/reference/html/) +* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.6.4/maven-plugin/reference/html/#build-image) + diff --git a/onboarding-java/mvnw b/onboarding-java/mvnw new file mode 100644 index 0000000..8a8fb22 --- /dev/null +++ b/onboarding-java/mvnw @@ -0,0 +1,316 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /usr/local/etc/mavenrc ] ; then + . /usr/local/etc/mavenrc + fi + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`\\unset -f command; \\command -v java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + $MAVEN_DEBUG_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" \ + "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/onboarding-java/mvnw.cmd b/onboarding-java/mvnw.cmd new file mode 100644 index 0000000..1d8ab01 --- /dev/null +++ b/onboarding-java/mvnw.cmd @@ -0,0 +1,188 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* +if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + +FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% ^ + %JVM_CONFIG_MAVEN_PROPS% ^ + %MAVEN_OPTS% ^ + %MAVEN_DEBUG_OPTS% ^ + -classpath %WRAPPER_JAR% ^ + "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ + %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" +if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%"=="on" pause + +if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% + +cmd /C exit /B %ERROR_CODE% diff --git a/onboarding-java/pom.xml b/onboarding-java/pom.xml new file mode 100644 index 0000000..1aa45bd --- /dev/null +++ b/onboarding-java/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.6.4 + + + com.gdn.onboarding.java.two + onboarding-java + 0.0.1-SNAPSHOT + Onboarding Java Day 1 + Bootcamp Blibli Java + + 1.8 + + + + org.springframework.boot + spring-boot-starter + + + + org.slf4j + slf4j-api + 2.0.0-alpha6 + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.java new file mode 100644 index 0000000..49c1a31 --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.java @@ -0,0 +1,13 @@ +package com.gdn.onboarding.java.two.onboardingjava; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class OnboardingJavaDay1Application { + + public static void main(String[] args) { + SpringApplication.run(OnboardingJavaDay1Application.class, args); + } + +} diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.java new file mode 100644 index 0000000..fdb3e38 --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.java @@ -0,0 +1,31 @@ +package com.gdn.onboarding.java.two.onboardingjava.calc; + +public class Calculator { + + public Integer add(Integer int1, Integer int2){ + if(int1 == null || int2 == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + return int1 + int2; + } + + public Integer minus(Integer int1, Integer int2){ + if(int1 == null || int2 == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + return int1 - int2; + } + public Integer devide(Integer int1, Integer int2){ + if(int1 == null || int2 == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + return int1 / int2; + } + public Integer multiply(Integer int1, Integer int2){ + if(int1 == null || int2 == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + return int1 * int2; + } +} + diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSort.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSort.java new file mode 100644 index 0000000..c5e4d0f --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSort.java @@ -0,0 +1,19 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +public class BubbleSort { + + public int[] bubbleSort(int[] arr){ + int n = arr.length; + int temp=0; + for(int i=0; i < n; i++){ + for(int j=1; j < (n-i); j++){ + if(arr[j-1] > arr[j]){ + temp = arr[j-1]; + arr[j-1] = arr[j]; + arr[j] = temp; + } + } + } + return arr; + } +} diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.java new file mode 100644 index 0000000..f894e15 --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.java @@ -0,0 +1,27 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +public class Calendar { + public String calendar(Integer number){ + if(number == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + if(number < 1 || number > 12){ + throw new IllegalArgumentException("Number must be between 1 and 12"); + } + switch (number){ + case 1: return "January"; + case 2: return "February"; + case 3: return "March"; + case 4: return "April"; + case 5: return "May"; + case 6: return "June"; + case 7: return "July"; + case 8: return "August"; + case 9: return "September"; + case 10: return "October"; + case 11: return "November"; + case 12: return "December"; + } + return ""; + } +} diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.java new file mode 100644 index 0000000..babca7e --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.java @@ -0,0 +1,16 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +public class Factorial { + + public Integer factorial(Integer num){ + if(num == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + if(num < 0){ + throw new IllegalArgumentException("Number must above 0"); + } + if(num == 0) return 0; + else if(num == 1) return 1; + return num*factorial(num-1); + } +} diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.java new file mode 100644 index 0000000..4ea73b2 --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.java @@ -0,0 +1,35 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +public class LetterGrade { + public String doGrade(Integer score){ + if(score == null){ + throw new IllegalArgumentException("Score cannot be null"); + } + if(score > 100 || score < 0){ + throw new IllegalArgumentException("Score must be between 0 and 100"); + } + if(score < 90 && score >= 85){ + return "A-"; + } + else if(score < 85 && score >= 80){ + return "B+"; + } + else if(score < 80 && score >= 75 ){ + return "B"; + } + else if(score < 75 && score >= 70){ + return "B-"; + } + else if(score < 70 && score >= 65){ + return "C"; + } + else if(score < 65 && score >= 50){ + return "D"; + } + else if(score < 50){ + return "E"; + } + return "A"; + } + +} diff --git a/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoList.java b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoList.java new file mode 100644 index 0000000..7468fef --- /dev/null +++ b/onboarding-java/src/main/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoList.java @@ -0,0 +1,48 @@ +package com.gdn.onboarding.java.two.onboardingjava.todoList; + +import java.util.ArrayList; +import java.util.List; + +public class TodoList { + List todoList = new ArrayList<>(); + + public void addTodo(String todo){ + if(todo == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + todoList.add(todo); + } + + public void removeTodo(String todoRemove){ + if(todoRemove == null){ + throw new IllegalArgumentException("Parameters cannot be null"); + } + for(int i=0;i getTodo(){ +// for(String todo : todoList){ +// System.out.println(todo); +// } + return todoList; + } + +// public TodoList(){ +// addTodo("Makan siang"); +// addTodo("Belajar Java"); +// addTodo("Mengerjakan Project"); +// addTodo("Belajar Maven"); +// getTodo(); +// removeTodo("Makan siang"); +// getTodo(); +// System.out.println("Test"); +// } +// +// public static void main(String[] args){ +// new TodoList(); +// } +} diff --git a/onboarding-java/src/main/resources/application.properties b/onboarding-java/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/onboarding-java/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.java new file mode 100644 index 0000000..cf7f5f6 --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.java @@ -0,0 +1,13 @@ +package com.gdn.onboarding.java.two.onboardingjava; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class OnboardingJavaDay1ApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/calc/CalculatorTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/calc/CalculatorTest.java new file mode 100644 index 0000000..6de1034 --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/calc/CalculatorTest.java @@ -0,0 +1,77 @@ +package com.gdn.onboarding.java.two.onboardingjava.calc; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class CalculatorTest { + //Add + @Test + public void testAdd_success(){ + Calculator calculator = new Calculator(); + Integer result = calculator.add(10,10); + + Assertions.assertEquals(20, result); + } + @Test + public void testAdd_failed(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calculator calculator = new Calculator(); + Integer result = calculator.add(null,10); + + Assertions.assertEquals(20, result); + }); + } + //Minus + @Test + public void testMinus_success(){ + Calculator calculator = new Calculator(); + Integer result = calculator.minus(100,10); + + Assertions.assertEquals(90, result); + } + @Test + public void testMinus_failed(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calculator calculator = new Calculator(); + Integer result = calculator.minus(null,10); + + Assertions.assertEquals(20, result); + }); + } + //Divide + @Test + public void testDivide_success(){ + Calculator calculator = new Calculator(); + Integer result = calculator.devide(10,10); + + Assertions.assertEquals(1, result); + } + @Test + public void testDivide_failed(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calculator calculator = new Calculator(); + Integer result = calculator.devide(null,10); + + Assertions.assertEquals(1, result); + }); + } + //Multiply + @Test + public void testMultiply_success(){ + Calculator calculator = new Calculator(); + Integer result = calculator.multiply(10,10); + + Assertions.assertEquals(100, result); + } + @Test + public void testMultiply_failed(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calculator calculator = new Calculator(); + Integer result = calculator.multiply(null,10); + + Assertions.assertEquals(20, result); + }); + } +} \ No newline at end of file diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSortTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSortTest.java new file mode 100644 index 0000000..5e51495 --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/BubbleSortTest.java @@ -0,0 +1,18 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class BubbleSortTest { + @Test + public void testBubbleSort_success1(){ + int[] arr = {20,8,21,43,2,34,56,78,54,31}; + BubbleSort bs = new BubbleSort(); + int[] result = bs.bubbleSort(arr); + + int[] ans={2,8,20,21,31,34,43,54,56,78}; + Assertions.assertArrayEquals(ans, result); + } +} \ No newline at end of file diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/CalendarTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/CalendarTest.java new file mode 100644 index 0000000..6f949df --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/CalendarTest.java @@ -0,0 +1,111 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class CalendarTest { + @Test + public void testCalendar_success1(){ + Calendar c = new Calendar(); + String result = c.calendar(1); + + Assertions.assertEquals("January", result); + } + @Test + public void testCalendar_success2(){ + Calendar c = new Calendar(); + String result = c.calendar(2); + + Assertions.assertEquals("February", result); + } + @Test + public void testCalendar_success3(){ + Calendar c = new Calendar(); + String result = c.calendar(3); + + Assertions.assertEquals("March", result); + } + @Test + public void testCalendar_success4(){ + Calendar c = new Calendar(); + String result = c.calendar(4); + + Assertions.assertEquals("April", result); + } + @Test + public void testCalendar_success5(){ + Calendar c = new Calendar(); + String result = c.calendar(5); + + Assertions.assertEquals("May", result); + } + @Test + public void testCalendar_success6(){ + Calendar c = new Calendar(); + String result = c.calendar(6); + + Assertions.assertEquals("June", result); + } + @Test + public void testCalendar_success7(){ + Calendar c = new Calendar(); + String result = c.calendar(7); + + Assertions.assertEquals("July", result); + } + @Test + public void testCalendar_success8(){ + Calendar c = new Calendar(); + String result = c.calendar(8); + + Assertions.assertEquals("August", result); + } + @Test + public void testCalendar_success9(){ + Calendar c = new Calendar(); + String result = c.calendar(9); + + Assertions.assertEquals("September", result); + } + @Test + public void testCalendar_success10(){ + Calendar c = new Calendar(); + String result = c.calendar(10); + + Assertions.assertEquals("October", result); + } + @Test + public void testCalendar_success11(){ + Calendar c = new Calendar(); + String result = c.calendar(11); + + Assertions.assertEquals("November", result); + } + @Test + public void testCalendar_success12(){ + Calendar c = new Calendar(); + String result = c.calendar(12); + + Assertions.assertEquals("December", result); + } + @Test + public void testFactorial_failed1(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calendar c = new Calendar(); + String result = c.calendar(null); + + Assertions.assertEquals("December", result); + }); + } + @Test + public void testFactorial_failed2(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Calendar c = new Calendar(); + String result = c.calendar(15); + + Assertions.assertEquals("December", result); + }); + } +} \ No newline at end of file diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.java new file mode 100644 index 0000000..477a93b --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.java @@ -0,0 +1,59 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class FactorialTest { + + @Test + public void testFactorial_success1(){ + Factorial f = new Factorial(); + Integer result = f.factorial(0); + + Assertions.assertEquals(0, result); + } + @Test + public void testFactorial_success2(){ + Factorial f = new Factorial(); + Integer result = f.factorial(1); + + Assertions.assertEquals(1, result); + } + @Test + public void testFactorial_success3(){ + Factorial f = new Factorial(); + Integer result = f.factorial(5); + + Assertions.assertEquals(120, result); + } + @Test + public void testFactorial_success4(){ + Factorial f = new Factorial(); + Integer result = f.factorial(10); + + Assertions.assertEquals(3628800, result); + } + @Test + public void testFactorial_failed1(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Factorial f = new Factorial(); + Integer result = f.factorial(null); + + Assertions.assertEquals(3628800, result); + }); + } + @Test + public void testFactorial_failed2(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + Factorial f = new Factorial(); + Integer result = f.factorial(-10); + + Assertions.assertEquals(3628800, result); + }); + } + + + +} \ No newline at end of file diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.java new file mode 100644 index 0000000..ed15204 --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.java @@ -0,0 +1,83 @@ +package com.gdn.onboarding.java.two.onboardingjava.project; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class LetterGradeTest { + @Test + public void testGrading_success1(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(100); + + Assertions.assertEquals( "A", result); + } + @Test + public void testGrading_success2(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(85); + + Assertions.assertEquals( "A-", result); + } + @Test + public void testGrading_success3(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(83); + + Assertions.assertEquals( "B+", result); + } + @Test + public void testGrading_success4(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(79); + + Assertions.assertEquals( "B", result); + } + @Test + public void testGrading_success5(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(74); + + Assertions.assertEquals( "B-", result); + } + @Test + public void testGrading_success6(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(69); + + Assertions.assertEquals( "C", result); + } + @Test + public void testGrading_success7(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(60); + + Assertions.assertEquals( "D", result); + } + @Test + public void testGrading_success8(){ + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(45); + + Assertions.assertEquals( "E", result); + } + @Test + public void testGrading_failed1(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(45); + + Assertions.assertEquals( "E", result); + }); + } + @Test + public void testGrading_failed2(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + LetterGrade lg = new LetterGrade(); + String result = lg.doGrade(-1); + + Assertions.assertEquals( "E", result); + }); + } +} \ No newline at end of file diff --git a/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.java b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.java new file mode 100644 index 0000000..63a70ec --- /dev/null +++ b/onboarding-java/src/test/java/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.java @@ -0,0 +1,72 @@ +package com.gdn.onboarding.java.two.onboardingjava.todoList; + +import com.gdn.onboarding.java.two.onboardingjava.project.LetterGrade; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.jupiter.api.Assertions.*; + +class TodoListTest { + @Test + public void testAddTodo_success1(){ + List todoList = new ArrayList<>(); + todoList.add("Makan Siang"); + todoList.add("Belajar Java"); + todoList.add("Mengerjakan Project"); + + TodoList todo = new TodoList(); + todo.addTodo("Makan Siang"); + todo.addTodo("Belajar Java"); + todo.addTodo("Mengerjakan Project"); + Assertions.assertLinesMatch(todoList, todo.getTodo()); + } + + @Test + public void testRemoveTodo_success1(){ + List todoList = new ArrayList<>(); + todoList.add("Belajar Java"); + todoList.add("Mengerjakan Project"); + + TodoList todo = new TodoList(); + todo.addTodo("Makan Siang"); + todo.addTodo("Belajar Java"); + todo.addTodo("Mengerjakan Project"); + todo.removeTodo("Makan Siang"); + Assertions.assertLinesMatch(todoList, todo.getTodo()); + } + + @Test + public void testAddTodo_failed1(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + List todoList = new ArrayList<>(); + todoList.add("Makan Siang"); + todoList.add("Belajar Java"); + todoList.add("Mengerjakan Project"); + + TodoList todo = new TodoList(); + todo.addTodo(null); + todo.addTodo("Belajar Java"); + todo.addTodo("Mengerjakan Project"); + Assertions.assertLinesMatch(todoList, todo.getTodo()); + }); + } + @Test + public void testRemoveTodo_failed1(){ + Assertions.assertThrows(IllegalArgumentException.class, () -> { + List todoList = new ArrayList<>(); + todoList.add("Belajar Java"); + todoList.add("Mengerjakan Project"); + + TodoList todo = new TodoList(); + todo.addTodo("Makan Siang"); + todo.addTodo("Belajar Java"); + todo.addTodo("Mengerjakan Project"); + todo.removeTodo("Makan Siang"); + todo.removeTodo(null); + Assertions.assertLinesMatch(todoList, todo.getTodo()); + }); + } +} \ No newline at end of file diff --git a/onboarding-java/target/classes/application.properties b/onboarding-java/target/classes/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/onboarding-java/target/classes/application.properties @@ -0,0 +1 @@ + diff --git a/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.class b/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1Application.class new file mode 100644 index 0000000000000000000000000000000000000000..e26a0108bd609af7a4871e6425f4025d31dac2a3 GIT binary patch literal 827 zcmb_aO>fgc5Ph2_b!q}F=?9dL1Dw(vSRtWaf-1GCDpVPY2nq*IYiH|jv3H~Ox*tD_ zQxS*$fc_}NtXmNu0w*l(tY+rT%$w)E`StS}z#BXd(ZqUyjS!FUIKU>u;#;Ma+hJJf zZH*b4Lo<;K%aPLZLz&0Yeim^?k#1xXk&T5_-oFbr-H9p~4x_~6Je_E6bZms3D4p_C zaVEGsH?>$5I{E`SB*ebBe7!rJW-1X*89g8dxlo#6qxUtc@R^`yBWJ1SpkgR&N;6mI zq#0J;OLt->AB7dUbkY(q9GTK4@<915UjB3XD?gB7^HZsv%H>!Uigw-A+PI1xb=!%I zO?ff(bdLRyb7Q~p*cit}=}cnuu}VuT`KW^IQKG(H2Q4fzy!&5z1$ffIQ#_;1XJQ@2 zr!sL2{l8MZC08Rxzu%UmdfcmtKFmZ>4Cd&(HCF`M-N_5bhj$wIcTyWcVV@r01se1U z{nr5VdXNps<8(8+Tm37r?^U`@)~7*$C9<7c07Bd&Z;AZ-)WjEWSIvNSx6%KBg)g)E ikTRf(fNEwv+IWCvim%XVF>*Ychn4MOm2N+F4fqW={oxq^ literal 0 HcmV?d00001 diff --git a/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.class b/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/calc/Calculator.class new file mode 100644 index 0000000000000000000000000000000000000000..f30cc855ab4a62c4d151482f17d8bcd7e0165d4a GIT binary patch literal 1278 zcmbu7-)|B@5XZlJ{5U`;6k3#8h1OqC8i~dyX-rI`2?@0(7!u!H?pCw>yh`C;i&8Q zw+rVc>|To@qyZUcp_1okbcMhW&*Sq!dFg9|yy5ER=ro-Vqb+`HG=3Ke6U; zrF>l*h?)weG+A!hxShov)U#;dfZ^f)_m-hB=Q$mm2}d(*FZQ{o1DaLaOn!47I_o}F zPhIVE8B)P?Jvt2b)T~ZlGnDI{Ws|@jY`SyiNr0KAki0~z7X6vA9-M=HBE>?MWHK_w zkRv^N5r7TkX+`kZq$so5M~q&e+WZOo@E3C5V7)BH&Jq97{EWmQeXqVC`H@0mQQD0t zJV_)ribP@3*Dg}b(o-_>l%gZ6*doosHbuo@rP3&qmbNGW&Gf4?;leQRWDGOF@No7k2RY(vcs8kV=5~QGRx*Gqebx7=J>c9*1 zNh&0^utH+d1xt3k1j4~jf0 zv`Mo3C>ZKDIw;>3|7evoF~u;A%i!rW;-Eoc%7+4t=ubwZ&BN~2VOKy5`B|S4Pa7lP zRB}$vG96C@76zq`U+?S545+oAmd8c%QX4%^%hV9AF({@cPWLiVB2_?|^ zFMfemb+VD>vHOud9qz#4U$&0}(n8VJm<9BLUful!@v$n`X=|0}Vvh0rWdp9D!A#&P z6{lMKorCO<=k4>38@fBvlj~;)<&N^yx+jw}Y_~ln6Q9<9ht|BAmz?=}`CvE!&6km8O@LpPU0@rCB-1rT3IE#h= literal 0 HcmV?d00001 diff --git a/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.class b/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Calendar.class new file mode 100644 index 0000000000000000000000000000000000000000..fa4346245f35767139083eef674b4a7934b6e5c9 GIT binary patch literal 1132 zcmbtTS!)zQ5dM14&bpgyI)}HecMi>(cpEjusAx>05{W1X_Rcn&iL*Unobf;q1VIo4 z!CxTw= z7$Xv+5{D&@NQ_BTC5}prOH4={lQ=GMLgJ*vDT&j0oXO*?K<=Dt-SC1ydT4k_AT#6F zjX=+wYt2H`teN1pu6eYmIp5LVk`CNt-!^8#W%rT5`8mgLRvUF&^=-}9LEW{D>WY4> ztKk#B!`3pb2L6h1!s?9njIHZnQb00uOBXmaG}nsqG*eu&p=p?4a=62`7zWJFLpj?j zPoS^EyM98Tv>0mV;k;gLms*}T;j&-9sRP|Kp$S-aVbPBQ$6Rrf{z~ihj3xIMF^J6q zdpm0JJk!wLbkK;J#)g-lI%YL=eJikaBWK0Y*7{+kW-2!Fyd=wH9_NZU4>G)ajnGOn zdejQ3ned4*wlZGPwq6;Z5XjGJ8|mN~DY;^5!J3+#*MYMvkeyx)T#tjA*9^$aMwVq$ zc--ZtqXx4IbS<(hlgy3TZaAUe(&U2wxNVe|jMG*jF!>*Y6DV)cbEB3FRbZfVe(hN$ z@2Ynrv^^vC=-O~edlB2<Wftx94bkGM}fQ2AKNSarp!5UWkGD#of5tL|9!#Ht*t-dL$v z^~DTLBWYz8ifa}bHq{M@-RR=qya^t!_EADWYlI#=MH$c0ix-T4i9Wm{W3S2C8?yD5 ue7$3~gpR?rmfLi&d1kDzl|A(JqugEY`h$z9jt_g2`}ssE1om-FVgElwQv7TH literal 0 HcmV?d00001 diff --git a/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.class b/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/Factorial.class new file mode 100644 index 0000000000000000000000000000000000000000..c3aa8d4905ea049302314a92b4d3c235aaf69f27 GIT binary patch literal 901 zcmbtSOK%e~5dNHOvdK0{(}WhvqurKQ9unce0V!1_gs2oLrJ$fl9G#7uY}vJ=tvB#n z5C^W@;L;+H;E2SJLX7huIpoG=#`Dd1{LSb2{pZ^c0FO|2;NZHA8yVbmkiabmJJ`*@ zHGa=Q7W+1C+qlD!KJcZl4;hk`YL~%!s``Rqz3of!JPvyzdc}JIA*HtRc+lmMZ{itf z>7jqlaM<=#*ckL>L&=`vQQwz?#u*>;hJLG-un9DZ)S2*fkyELJw8{1&??rw1|kd(@}Bci6h_4 zSNO;0fq6cMHRKrfm#74R81UdpG>AhX^|N=L7-?TghV4aD*W*$u?e>H#;~+3y?%KGQ z!+lhU=~PiSjL)^pdulA)hdESH%b|oa!@>W^$WUC6J?R;Z88(;2?C6L-rfI%;V^KPj zm?7g!-Q__{V$d$M80@i$PEHxNDy>yNfIZqIhc*thW6UTnO8A=XKf|@2_i0r^7o2G|sinG|HDRzlcod`T8#1Pz?l9&-BI=Di0 Yq{Z}Rp}3aARXV2_CCmiZ$R@D;7h`zTB>(^b literal 0 HcmV?d00001 diff --git a/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.class b/onboarding-java/target/classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGrade.class new file mode 100644 index 0000000000000000000000000000000000000000..28b5221faef53ee01fe9654e9fae0bed150b3d77 GIT binary patch literal 1071 zcmbu7TTc@~6vzM5>#`JD%Eb#R3tlKxC?LLw5(|PMluN9V=-YI6QWm$fWSNR4eg+fY zeGw90MH3~_L?2E3P{uR6t@PbVX75w(4L|p_66CJFo0y>{^k_WaQP-*=g&UOMrPgQaI z`3B!_)tcK7YS(wRdB7WjZl=1;s^1K3vFhpua~%au>k2aHL!M!*qZ-c>b?%jedb1&< zT6t-UedYR+VW6r@v1~4-udJG|WYhEX0kdh$WpE4g3?orYqj?ZU)Py<|LRvExmyR_% zL;oUHo}y)`$iSAgK|8ig^8w8jnq`K?|5KXUJZopGrhf#(V5j0Ob@f~5I}2^e%3!!s z?QpM2g3*In!zi-!@brj*GLWaWpLQksGWsSbPr*Kg?g3g;A&g^?>`WAZA)KQf!+Bhw zLnxUoBTg3ZrT7ay-w}J7kDns(v-lOsoO29Q8}C}4)IZO&BV@ynC-0HUr%xig4YxHk zBDmd#>l$`NaJ>yzH8dl*+JAB-DnSx;XX4JkV~l$4%!KlYD;K?U?z!iF=R4;+x8Hw%`V3$e3sLkSryw6i2)S+~ za8AMbE=)xch8DvGOp9ekEEg5bMiIj$vAL|^ih`>QU9R1*E5@eF&|6vOTU=|qhN%fp zfuXxUK+OHZ0AyYBqNo1g?4H+$Z)vpYI9^(3S&( zNGQC~5L<@+%u$*iFHyH(;bH7Af+1dYdHvB6-w0UsF6r)?-MGgc-qKy&A%;;$Z`oVA zpMx0;Y>}J-^S*aL6q>s0A15=}L#-o*lSiEY=x4NQx1G9v+Yn8Q3q+yKl%TERIQkj- zyb?Uw<{gJW6Xz;=ag1TSQ{AFz>P>FWJI!`Wx7=G#>-vUk*cQWJr?7OLTbAvnYkJyh zo2E#RQgBVhbre(-F{h%08#F2%Twi(>H$}v}I4u5;cn7fW*4FhpO=hA~p+Bk;>3c|9 zKemv4NHe!-Jf~*S0Fo#Y=^#QE0}(u_gJ7Cg{c)R{BxuAJ6l3&;dgyI2`cVt%n z2}{Hd<-Z}mi|}ePvJK@+?mguE4!S~kAW$U;)Fj~vY?)qi0&zl1c<2K@LV!+K7{&-? z8TD?m1kz-L8F@wSvAx`H2v;Is`Cx8oE+x|Mpqt?pGQv*nAR59~#PT1ZzC@~(;oHm9`!ON_Nd1oCw_sk y{7?ErOVc$fVS+vkXD}JGPotfXD=ZkjB_rf@D&jdu_w_y;r0^9zOXnFcI{O#-Fd@GH literal 0 HcmV?d00001 diff --git a/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.class b/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/OnboardingJavaDay1ApplicationTests.class new file mode 100644 index 0000000000000000000000000000000000000000..e3c10c37f4efb970ab1251cebdfc04cd17da52d3 GIT binary patch literal 625 zcmb_ZO-lnY5S?sWSKHOr>P7J2%`Y$r;zbdv;z3pmw)CFejWxBKS+ZHHKg*Ng!5`p{ z5@*vQ1rJ_a*qP+zy*HW3=hyoO035-39V)QuL)(Wn1`DT3D|^PEva>s2P`$uJGH8ZM z%iAK2r0I)jOh`M#Sd0h4sB%98tM)ADIX@9qmEFRMClDHCo4~v&|3r2&Qtb&LFCfW+cVqff%9m48nH{I-_{;Ynf z9(zuIKu>>DPoLQ=+0E$+E&Z^wGk5OX=RWsk=8wPL{SM%BSa}RX&*5So8R&Uj!euqP zlIPyl9Ih3qRZ)wZO8jLJLM=16UE~nX7K-RYC5Ocv?g|Xtv>eO7CD2!%-Vn$xx~3Eu zs#=bG7&Nz}w{C3NloYFO-LN+d&r<71nDuw8w!nO~?l$#?>FBPrBJ`Nn;YRV0(ZIRr9W6ScTryDIxkNiHm z=l8Z@+0qmkR)U)41nrngA(ri_6_x0&wQHF&)(g)@!ac>&@GPCTTK4N$b)-kUr+msb znp>t(O4%%3VMv!=)nzLrmcx?3ctX7gwse_6No;obbWlo{1jZ73DrwQqMMA8(fmfIJ z7z{?cH_aDR>@^fIB5>pI6_dj~4fnCEVFjx>JkU@@P2fx-v$ic8hP~i5f~Iu*E^C3p z9oO~SzGt**(%*5-_Rs(x7BIr!BMo2SYYmUFrePhc6n&#%Bb+?Z@NGER6u5PG&)1oA z`Vc$%XzRJGtFnwm>pPzNveR}g!7;HuzsMgPN z_(_8Sso@+(G|Z}DMh%~-(oPhj*1!#jK%`zV|I4Vle1=&Q~a@^6t1hhNcOD~z6di-Fi`5!uk* zAe|V)5GLr9LYV4Ui4YX(I6flM7;-p8tqdlqrF{CBe?k2{4{mTzxvv#-?=T3w#RpGf zJoS`=x<}}9%tVWDdTpNW+Du_(#;o$S!qYTX6NI0nJrm%IYDY73gIA&WiM3&si`V;9q1v&B1}uwRg$V4 zNa}3YW=g6O1$eYpFwk9DhvHVh;*D52HEE-JE{dbjU-U!D$ACc zCL(X)2yrt)Joyhqt(r{(yhh{Kd3=rmyO97K?gDnop%;*M|A7?q@1b~>h$`%5Qk+g8 z?oW|V&Vh*i??D_T;xV2dBjSmFhsZFVXMi)f0F(bb1HFZ9)M?>5*E0d%7(KJwZI`m@EI%TMvf@ub)W(DugMZm28c0@Zgly7qVWvxiB}?WwoQ%ipE{Ji+hMIsZyD?B~l^>dp2)N;KPiWD?_WGi+y!C(m?JSG*(4(d*7j3Q8`=@UTHK1<} z>xs}q3pSsi`6~Qr26z)^9!J5kcJmP8bGbdrXqU-48k{$d4&V&Va>ZxK;!0Wk8y0HJ zeUk1EH>k=9Kd@xo4{CDK4{W*Q2Tsio>T=!>q%H3=I&y=tF7Gjp$T`3J9hKk^)#taC zzQEcz!ePx2hJd!ga(MI@hp@yk2=x+kgqSPVv~~L{Y9|V2r~w$o3i)@)eT}?7K;k2s vrK;s4=0jC0c)`6U)pdAs4C7R|#`y$uRn|F};8q&9amRnU ztKeQ5_fb&rK*5ZHhYDsD%qe)J;IV>v1q%um6%=JG<)~@JU%i@xgcTXjWvoj`-8L-4 zy(?kg*f^)XGj>@>=r0!Mztk|604 z?tF`W>P|VL?wPKCh`qkXHcLo@kyXvMQ!qbk;oy1}CrEX#H^*RU;~>{!uucodH= z;&;t(g_GB6Mn1{tOC1h#xr6*l2l>?w@@pOB*E`5>bdcYaFc|Cfi=AHZI^uUUk36U8 zuFVKBH@7sy6lHD*?)Betu0LUF)lyj-^)2}7^(Z%{XFuqo7Tkl37s(r@Mrm_;)%F}+ z%n>Xh+YBZDrY`umu3`wo5~jZ)RAszWv4Njdyuxb<@`7f0n)6Y{&nkYwrUYe9lpJ3q zVgHim=-V6%HODZSUP~IKy$ha2>o}O4r3zlft1~VStn#G7&o*jZrVoQB<%zu;3YCXK z4c1w#)VY6y9Vo%z=(5L03_R;A~66 zy>IY{?_JW`CM}ozbi0*2o^+O(*1O{(Q zd=R?l@=ni>jdv&(Tb`x+#Qbcq)^`OD6~Y7W5WX5c*o;ZbrvHb!s0Uj9X16$k9T{&` zn5e0^j$xI}gh>#IA;a3W-->)O$VLW>wiV&u~+>-wNjTNa0COn;zz zq_IELtssMwI7LPlGEQTZ`p37;eUQCIMM5fl9r_x^W_W|(9+nK7W10q3@s2(jVl;zos|U+m^Aykc JX*{jr=|7Ka8Cw7V literal 0 HcmV?d00001 diff --git a/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.class b/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/FactorialTest.class new file mode 100644 index 0000000000000000000000000000000000000000..5f06f80bf7ab0f433b19888676873585c02406f0 GIT binary patch literal 2656 zcmbuBYg5}s6o%i$4swhr#xz`#hLY4Y=IU@sXk(fLC^Qrk+Cb>!Q%1HIP$EmNE`^0+H;j#8j4wT;a(OK zm{d5Xx0l>B#2%oduO zuJcCL{L+R|^BqRB_N3>R1qOYNZR2Y%sMVzB%?XGDfyY-OFnYHuy}dEN{iO9pCUx$7Xe3R2-M(1Z)$(o2D<_lF>9vm*zcxQ9%nA zy;u~ualQoyhH1$NB&+tNRB>Rw+rR&wa$u&QGX-|JY%24_DAJiSVis$$|gIqg)HYN?-&Y46B& z-nC9gf5#e$Nxs&l4Q5BWI?WYo^&J8>P9$O|1~fy zYIvx)nG}6Li)Yx(LdTEHSDwgP;B(_=iW3)T{vfbxicne)*Q(-qdLmfZ55jiim8@CJ zr2Id^#Y=8?xU6#A(ooT{jh}TC(5K^$l449YrhV+Zm8D8}D5wvk)!p|3J&n#x!!ECb zisQTunoNDuwxt^;DVh4;@zkSuEu}p(?7AhrLd&rn>*lWS^1h2(&N=SAZ^}=5*+O3K z8}C+xT{A3em$y_|!=Au+N15l+I$sa3hRfGsj2qC)pAg_WKfDF_Ba-7&iKF0nZSn)e zZ+z%NKfk*}V+QJ1M{g~_06yo8*BPC=LT7_xingIY(DmvAQkALHDbl~=+IDLC6y2S0 zd8ETY8RpPW_d&X=&|@w4D0C)#Gekr`6Bxz_!{6j8mCP-Uyvr{^rz3Pa2|a)ev+pN( z5JR7YzTHMwqpFA7Rc9h}?j(tQlk8h$-zIr9#vX2$oeQ&4WowCLkG9#hh&|F~=duwz zuO-3n5Pp}?0t1i7;3I9gYKrQ4{sQ=yZTKU?l~(k8=A)9)DYCzG_E`O80gC9sY{+TJ zMvpk>_i-#aW>0d=ImTSNJZ3Jdt`laUH2sRB%H^y{Ta&qeT1~3twW$PQ&a+7i1Uz7q z9)_Sn2FQeZ8DgNb*6_OGEX^i-MIbM+2>3Dr-iUT(Yf|tKTmYM3;7OjqX$o>C2I~#? sL7mN(2x2gvl5v8&@HKwom}LUb@d7(MAtlaLviG@W4)gr9o*rQCKRFRsy8r+H literal 0 HcmV?d00001 diff --git a/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.class b/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/project/LetterGradeTest.class new file mode 100644 index 0000000000000000000000000000000000000000..f7ec7073b3749ceb309a4e86b49fa28bd5282adc GIT binary patch literal 3317 zcmbuBZCBG+5Xb*1NU|mJP>>ZDT~u5O2o)4Wi%5a;AO#c%-A(m((H_y>S{IEtbdQ!?&G5y4cHl4*A~ zqu_oNvv{E3p@O7>IR%dt%qw`TU_nMIM(q`M$7&1`R%EQpcp{-~PB(RDUP4QJWM4w- zl9d+{Iy1T{wkpM}u=ljAK}jrQ;k>m1GEY>pt=A&wBr?KrguQBOd9f$TPEtaz!_gH`{Z+Y=%ZYM%QbNQiNLV;0 zg67+7QLY${dlb(RL!+0wj!hch_U}|oM=y$fy{z+qDbutZ&CxBB=NrgaHV;%`p!h85 z^gE%I^h5){r^1hOH(Y!#Ts$2vo(UJ<4;Rl$=m`e)P}2>OXIw+1^m@S1irKt2^tsB^ z5S60ocR5k=;v!?C(e}xqJKVl&RqUKtA(Gzx>&hqGYfy0seG=x+mq9WzDmJmDVjE8- zNGTc5RP11v>604gV{weqMR&rLw8Y;se`yIf>bbCP7^0vVDZ5Z93e!0~sf4aY%W}$& zt(7)~b7bYqoo(3bLLZ0cD)#Y0#Y-G;^}U3}^PR-aDFW+WZD-wb;dRwTdq=kQwpy0m zb?Lh4h=Q;s$j6#d5!;6n`r_*&fn@i0Fx%z4#&-1_$pFoljO<781AdI62S3p>@lNC_4%1~kKJtaSJFJ*FmzYR%$s~d0y-*CmwMdgU6oa5L+S^p@b@d+T3Yuvn%R;N9cju%wBSIeYx!Sqm9u>HAb0O z$5==^+GLEj*m9my`3zRrF;Rn zOyg-@$|^5qEdZ=`J@CzEK=#Kwgh!adIgU{}p+O)^?M1F#SC+VEnRb``*&3Gr0f!#0 AGXMYp literal 0 HcmV?d00001 diff --git a/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.class b/onboarding-java/target/test-classes/com/gdn/onboarding/java/two/onboardingjava/todoList/TodoListTest.class new file mode 100644 index 0000000000000000000000000000000000000000..0d8bedbb58d01a6039f99a31b9c9c2c2acc1ccc1 GIT binary patch literal 2913 zcmbtWZBr9h7(ENfreReGg4L=Zq6Gr1C~8Xp2@woBW+~B4fS;#@dO&yCmN*X$6ZPyOxHMEb6KGx7t z@+_(0c-eO4{d#Rf`W3O^a3ojus=|3Jd|UOC!H#g-4m2#5t6t6AvRu=1H$356w!3BS zh!?^PUwWyrc*wK7vK@qGC23S-5Ee9?2w4{`OAS8@>eZ?Yf+-D|FbUJpU5+-Whqhy? z9k{4N&1#tcECAf6znR_Z-93iGEjef7z9YzRE%ZsWFwga;9@X8@uF1!CU{ju=>w2LG zZO^4TXUd*WIqH;|<*pq{-xRyHneaZTct4Ug?}cok-kVlrQ`nBQC`f-x{Qks%BWfF# z7(RG@m`k%uuc~r4f~DgYk)>AbDW7aNe3{{EUfr+CWhU0pqrfTED}+0#4#L0*^l9jA z97@sm#cLI#p=(t<7w+JiO`&uw8Cb?`4aTB$#E$R>?{Yntu1a@H`a4nRL*LtxRW6x~E+lXo7qoR}l{)M1dp(PF{E$TsPl!mqlGS=hr%e#i!TC4qZdIi>m!epu4Z#{Q zl1MIIx3#n=C5MxR|FK;nM)Ls_6vn4Iel+kCel;+LJ_BDX^QT;8yDz-w(kw@pkoFOq zq8fVsYu<%gqo-qoZ*JN1p4WE?eZ_U9AAyvF{&yOBvR`b(JHoXb84Sk@3#nsI4mCB> zw6MabEFJ#olX1$!*QV7qd5&{5TJvElHh%*}i>oI5-YgFJv<{(u2GzkGN2 z6V}g`$y#H5Wb7@p-`QxxNtT__pn)&hHsS!B!fEz2e8t6W(c<^4+c~!U0c}s-qP?8Y zb^L)NZCKCeI`(c0AV^l{(A(_#1S+gQ2pwN7=`aW&1dPce~NU z&uN0cK+t(+o?_-3jG801C1O$t2V)co!VKnd24{&hPps!KK$L@wQas|h^K1=qM6tZU zTEp-@r?&~GQiIc{Q;EnO{Vzginf@H<43N-y0vN&w(@!$_G%jKWm$1l7(I8aXCsarX z4RKv7AvO0gp^N*3W=Ke#u#r3Vo|@tvy4M>At^NjqLUmEp#$g*t=4O#D9lU4H!F$ed z&)bLZ*_~C701+rBzG1Df+)0GLH@4@Yv0Sr9mME~VgqdZ`9B Date: Mon, 7 Mar 2022 21:17:46 +0700 Subject: [PATCH 2/2] Add Project