Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions banco/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
4 changes: 4 additions & 0 deletions banco/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions banco/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions banco/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions banco/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions banco/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions banco/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
57 changes: 57 additions & 0 deletions banco/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
// buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.bank.services"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
// dataBinding {enabled = true }
}

dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'

implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support.constraint:constraint-layout:1.0.3'

implementation 'com.google.code.gson:gson:2.7'

androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.27.0'
//testImplementation 'org.mockito:mockito-core:' + rootProject.mockitoVersion;


implementation fileTree(dir: 'libs/', include: ['*.jar'])

}


/*
sourceSets {
main {
res.srcDirs = [
file("src/main/res/templates/").listFiles(),
"src/main/res/templates",
"src/main/res"
]
}
}
*/
Binary file added banco/app/libs/activation.jar
Binary file not shown.
Binary file added banco/app/libs/additionnal.jar
Binary file not shown.
Binary file added banco/app/libs/mail.jar
Binary file not shown.
21 changes: 21 additions & 0 deletions banco/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package br.banco.services;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("br.banco.services", appContext.getPackageName());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package br.banco.services.app.alert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class AlertTest {

@Before
public void setUp() throws Exception {
}

@After
public void tearDown() throws Exception {
}

@Test
public void getArea() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package br.banco.services.app.alert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class AlertViewTest {

@Before
public void setUp() throws Exception {
}

@After
public void tearDown() throws Exception {
}

@Test
public void onCreate() {
}

@Test
public void onResume() {
}

@Test
public void updateAlertView() {
}

@Test
public void checkInternet() {
}

@Test
public void drawView() {
}

@Test
public void showProgressBar() {
}

@Test
public void hideProgressBar() {
}

@Test
public void onKeyDown() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright 2015, The Android Open Source Project
*
* Licensed 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
*
* http://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.
*/

package br.banco.services.app.utils;

import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;


public class ValidatorEmailTest {

// true

@Test
public void ValidatorEmail_Com_Dominio_True() {
assertTrue(ValidatorEmail.isValidEmail("[email protected]"));
}

@Test
public void ValidatorEmail_Com_Dominio_Subdominio_True() {
assertTrue(ValidatorEmail.isValidEmail("[email protected]"));
}

// false

@Test
public void ValidatorEmail_Sem_dominio_False() {
assertFalse(ValidatorEmail.isValidEmail("name@email"));
}

@Test
public void ValidatorEmail_Com_Dois_Pontos_False() {
assertFalse(ValidatorEmail.isValidEmail("[email protected]"));
}

@Test
public void ValidatorEmail_Sem_Nome_De_Usuario_False() {
assertFalse(ValidatorEmail.isValidEmail("@email.com"));
}

@Test
public void ValidatorEmail_Com_Email_Vazio_False() {
assertFalse(ValidatorEmail.isValidEmail(""));
}

@Test
public void ValidatorEmail_Com_Email_Nulo_false() {
assertFalse(ValidatorEmail.isValidEmail(null));
}
}
Loading