This file contains 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 org.junit.Assert; | |
import org.junit.Test; | |
public class TransferTest { | |
@Test | |
public void test() { | |
// ARRANGE | |
TransferApiService apiClient = new TransferApiServiceStub(false, "error transfer"); |
This file contains 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
public class TransferService{ | |
private TransferApiService apiService; | |
private ErrorStorage errorStorage; | |
private boolean ACCEPTED = true; | |
private boolean REJECTED = true; | |
public TransferService(apiClient, storage){ | |
apiService = apiClient; | |
errorStorage = storage; | |
} |
This file contains 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
//function target | |
public conversorMoney(String from, String to, value); | |
@Test | |
public conversorMoneyTest(){ | |
String originCurrency = "USD"; | |
String destinationCurrency = "CLP"; | |
int value = 1000; | |
This file contains 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 cl.solojava.string.challenge.run; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
public class AppRun { | |
public static final String DATE_FORMAT = "hh:mm:ss"; | |
public static String DATA_PROOF = "adfghjklqrtyueiowmasbdabsod"; |
This file contains 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 org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.GenericXmlApplicationContext; | |
import org.springframework.data.mongodb.core.MongoOperations; | |
import java.util.List; | |
public class GenericDAO<T> { | |
final Class<T> clazz; |
This file contains 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
var fileJSON = require('./test.json'); | |
console.log(JSON.parse(fileJSON)); |
This file contains 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
public class Conditionals | |
{ | |
public static void _if() | |
{ | |
int i = 5; | |
if (i == 5) | |
{ |
This file contains 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
/// <summary> | |
/// Allows that see the different iterators sentences | |
/// </summary> | |
public class Loops | |
{ | |
public static void _while() | |
{ |
This file contains 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
/// <summary> | |
/// This class allows read a file than simple way. | |
/// </summary> | |
public class FileRead | |
{ | |
/// <summary> | |
/// Routine that return a StringBuilder with the content that was read | |
/// </summary> | |
/// <param name="pathFile">Filename to read.(Include full path)</param> |
This file contains 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
public class ControlSentence { | |
static void _if() { | |
int i = 5; | |
if (i == 5) { | |
System.out.format("The value is %d \n", i); |
NewerOlder