use of com.android.builder.model.level2.Library in project tesb-rt-se by Talend.
the class SamEnablingAssertionTest method commonTest.
private void commonTest(String testName, String searchFor, String isbn, String expectedResult) {
final String dir = testName;
serviceContext = startParticipants(dir);
Library client = (Library) serviceContext.getBean("libraryHttp");
ListOfBooks response = null;
try {
response = searchFor(searchFor, isbn, client);
} catch (SeekBookError e) {
fail("Exception during service call");
}
assertEquals("Books amount in response differs from 1", 1, booksInResponse(response));
assertEquals("Received unexpected author name", expectedResult, authorLastName(response));
}
use of com.android.builder.model.level2.Library in project tesb-rt-se by Talend.
the class SamEnablingFeatureTest method commonTest.
private void commonTest(String testName, String searchFor, String isbn, String expectedResult) {
final String dir = testName;
serviceContext = startProvider(dir);
Library client = (Library) serviceContext.getBean("libraryHttp");
ListOfBooks response = null;
try {
response = searchFor(searchFor, isbn, client);
} catch (SeekBookError e) {
fail("Exception during service call");
}
assertEquals("Books amount in response differs from 1", 1, booksInResponse(response));
assertEquals("Received unexpected author name", expectedResult, authorLastName(response));
}
use of com.android.builder.model.level2.Library in project tesb-rt-se by Talend.
the class CompressionAssertionTest method commonTest.
private void commonTest(String testName, String searchFor, String isbn, String expectedResult) {
final String dir = testName;
serviceContext = startParticipants(dir);
Library client = (Library) serviceContext.getBean("libraryHttp");
ListOfBooks response = null;
try {
response = searchFor(searchFor, isbn, client);
} catch (SeekBookError e) {
fail("Exception during service call");
}
assertEquals("Books amount in response differs from 1", 1, booksInResponse(response));
assertEquals("Received unexpected author name", expectedResult, authorLastName(response));
}
use of com.android.builder.model.level2.Library in project tesb-rt-se by Talend.
the class CompressionFeatureTest method commonTest.
private void commonTest(String testName, String searchFor, String isbn, String expectedResult) {
final String dir = testName;
serviceContext = startProvider(dir);
Library client = (Library) serviceContext.getBean("libraryHttp");
ListOfBooks response = null;
try {
response = searchFor(searchFor, isbn, client);
} catch (SeekBookError e) {
fail("Exception during service call");
}
assertEquals("Books amount in response differs from 1", 1, booksInResponse(response));
assertEquals("Received unexpected author name", expectedResult, authorLastName(response));
}
use of com.android.builder.model.level2.Library in project atlas by alibaba.
the class AtlasDependencyGraph method instantiateLibrary.
@NonNull
private static Library instantiateLibrary(@NonNull AtlasDependencyGraph.HashableResolvedArtifactResult artifact) {
Library library;
ComponentIdentifier id = artifact.getId().getComponentIdentifier();
String address = AtlasDependencyGraph.computeAddress(artifact);
if (!(id instanceof ProjectComponentIdentifier) || artifact.isWrappedModule()) {
if (artifact.getDependencyType() == DependencyType.ANDROID || artifact.getDependencyType() == DependencyType.AWB) {
File explodedFolder = artifact.getFile();
library = new com.android.build.gradle.internal.ide.level2.AndroidLibraryImpl(address, artifact.bundleResult != null ? artifact.bundleResult.getFile() : // fallback so that the value is non-null
explodedFolder, explodedFolder, findLocalJarsAsStrings(explodedFolder));
} else {
library = new JavaLibraryImpl(address, artifact.getFile());
}
} else {
library = new ModuleLibraryImpl(address, ((ProjectComponentIdentifier) id).getProjectPath(), getVariant(artifact));
}
synchronized (sGlobalLibrary) {
sGlobalLibrary.put(library.getArtifactAddress(), library);
}
return library;
}
Aggregations