Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Revert "Assertion arguments should be passed in the correct order"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan-3213 authored Oct 13, 2023
1 parent 54e8a65 commit 2367ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 35 deletions.
27 changes: 1 addition & 26 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
apply plugin: 'com.android.application'

buildscript {
ext {
agp_version = '8.1.1'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$agp_version"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1"

classpath 'com.android.tools.build:gradle:8.2.0-beta01'
}
}

Expand All @@ -22,26 +17,6 @@ allprojects {
}
}

apply plugin: "org.sonarqube"

sonarqube {
properties {
property "sonar.projectName", "OpenTracksConcordia"
property "sonar.projectKey", "OpenTracksConcordia"
property "sonar.tests", ["src/androidTest/java"]
property "sonar.test.inclusions", "*/*Test/**"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.sources", "src/main/java"
property "sonar.exclusions", '*/*Test/**,' +
'*.json,' +
'*/*test/**,' +
'**/.gradle/**,' +
'**/R.class'
}
}



def getVersionName = { ->
try {
def stdout = new ByteArrayOutputStream()
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1024m
systemProp.sonar.host.url=http://localhost:9000
systemProp.sonar.login=sqp_61650630da8d6ff10b29db5c39ba42ef7feed25e

3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#Sun Oct 08 22:27:07 EDT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@ public void testEditCustomLayout() {
// then only updated profile is modified in the custom layouts
List<RecordingLayout> layoutsAfter = PreferencesUtils.getAllCustomLayouts();

assertEquals(2, layoutsBefore.size());
assertEquals(2, layoutsAfter.size());
assertEquals(layoutsBefore.size(), 2);
assertEquals(layoutsAfter.size(), 2);

assertEquals(4, layoutsBefore.get(0).getFields().stream().filter(DataField::isVisible).count());
assertEquals(1, layoutsAfter.get(0).getFields().stream().filter(DataField::isVisible).count());
assertEquals(layoutsBefore.get(0).getFields().stream().filter(DataField::isVisible).count(), 4);
assertEquals(layoutsAfter.get(0).getFields().stream().filter(DataField::isVisible).count(), 1);
}

@Test
Expand Down

0 comments on commit 2367ed5

Please sign in to comment.