input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testDefaultFormatRealVectorImpl ( ) { java . util . Locale defaultLocal = java . util . Locale . getDefault ( ) ; java . util . Locale . setDefault ( getLocale ( ) ) ; org . apache . commons . math . linear . ArrayRealVector c = new org . apache . commons . math . linear . ArrayRealVector ( new double [ ] { 232.222 , -...
org . junit . Assert . assertEquals ( expected , actual )
testDateETTimestampCompareColumn ( ) { java . lang . String sqlText = java . lang . String . format ( "select<sp>d<sp>from<sp>%s<sp>where<sp>d<sp>=<sp>'1988-12-26<sp>00:00:00'" , com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . QUALIFIED_TABLE_NAME ) ; try ( java . sql . Result...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
convertToDoubleNull ( ) { java . lang . Character c = null ; java . lang . Double d = converter . toDouble ( c ) ; "<AssertPlaceHolder>" ; } toDouble ( java . lang . Long ) { if ( value == null ) { return null ; } return value . doubleValue ( ) ; }
org . junit . Assert . assertNull ( d )
importMappingIssue ( ) { java . lang . String csvString = ",\"Fish<sp>No\",\"Fish<sp>Species\",\"Date<sp>\",,\"Site<sp>\",\"SL(mm)\",\"Stomach<sp>volume\",\"Stomach<sp>status\",\"C.<sp>Method\",\"Detritus\",\"Sand\",\"Diatoms\",\"Centric<sp>diatoms\",\"Pennate<sp>diatoms\",\"Oscillatoria<sp>\",\"Filamentous<sp>algae\",...
org . junit . Assert . assertNotNull ( taxon )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( kaleoInstances . isEmpty ( ) )
testGetOrdersByWithUnknowIdResolver ( ) { java . lang . String orderByParam = "name-desc,identifier-asc,citizenCountryId-desc" ; java . lang . Object resource = new org . lnu . is . resource . person . PersonResource ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "nam...
org . junit . Assert . assertEquals ( expected , actual )
testGetDiscountedCosts ( ) { java . math . BigDecimal costExpected = java . math . BigDecimal . valueOf ( 95L ) . setScale ( Numbers . BIGDECIMAL_SCALE ) ; java . math . BigDecimal costsBefore = java . math . BigDecimal . valueOf ( 100L ) . setScale ( Numbers . BIGDECIMAL_SCALE ) ; java . math . BigDecimal discountValu...
org . junit . Assert . assertEquals ( costExpected , costsActual )
getStatusNaam ( ) { final nl . bzk . brp . bijhouding . bericht . model . StringElement statusNaam = nl . bzk . brp . bijhouding . bericht . model . StringElement . getInstance ( "test<sp>statusNaam" ) ; final nl . bzk . brp . bijhouding . bericht . model . OnderzoekGroepElement onderzoekGroepElement = nl . bzk . brp ....
org . junit . Assert . assertEquals ( statusNaam , onderzoekGroepElement . getStatusNaam ( ) )
parserDeviceProvisioningServiceNameWithoutSeparatorSucceeded ( ) { java . lang . String deviceProvisioningServiceName = "PROVISIONINGNAME" ; java . lang . String sharedAccessKeyName = "ACCESSKEYNAME" ; java . lang . String policyName = "SharedAccessKey" ; java . lang . String sharedAccessKey = "1234567890abcdefghijklmn...
org . junit . Assert . assertEquals ( "HostName=" 0 , expected , actual )
setHostNameSucceeded ( ) { java . lang . String regex = "1234567890abcdefghijklmnopqrstvwxyz=" 2 ; java . lang . String deviceProvisioningServiceName = "b.c.d" ; java . lang . String hostName = "1234567890abcdefghijklmnopqrstvwxyz=" 0 + deviceProvisioningServiceName ; java . lang . String sharedAccessKeyName = "ACCESSK...
org . junit . Assert . assertEquals ( hostName , actualHostName )
testBuildWithParameters ( ) { org . lnu . is . domain . department . Department department = new org . lnu . is . domain . department . Department ( ) ; org . lnu . is . domain . contact . type . ContactType addressType = new org . lnu . is . domain . contact . type . ContactType ( ) ; java . lang . String value = "fas...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testWriteMarshallableAndFieldLength ( ) { @ org . jetbrains . annotations . NotNull net . openhft . chronicle . wire . Wire wire = createWire ( ) ; @ org . jetbrains . annotations . NotNull net . openhft . chronicle . wire . MyTypesCustom mtA = new net . openhft . chronicle . wire . MyTypesCustom ( ) ; mtA . b = true ;...
org . junit . Assert . assertEquals ( fieldLen , len , 1 )
testArrayOfBytes ( ) { org . apache . avro . Schema bytesSchema = org . apache . avro . Schema . create ( Type . BYTES ) ; org . apache . avro . generic . GenericArray avroArray = org . kaaproject . kaa . client . common . CommonToGeneric . createArray ( org . kaaproject . kaa . client . common . CommonToGenericTest . ...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 } , avroBytes . array ( ) )
testAddPermissionSetToUser_shouldPersistSetsAndPreserverOrder ( ) { java . lang . String [ ] sets = new java . lang . String [ ] { "setB" , "setC" , "111" , "777" , "aaa" , "222" } ; for ( java . lang . String s : sets ) { userManager . createPermissionSet ( s ) ; } userManager . createUser ( testUser1 ) ; userManager ...
org . junit . Assert . assertThat ( java . util . Arrays . equals ( sets , result ) , org . hamcrest . Matchers . is ( true ) )
testGetType ( ) { classUnderTest = new net . sourceforge . squirrel_sql . client . update . downloader . event . DownloadStatusEvent ( net . sourceforge . squirrel_sql . client . update . downloader . event . DownloadEventType . DOWNLOAD_STARTED ) ; "<AssertPlaceHolder>" ; } getType ( ) { return _type ; }
org . junit . Assert . assertEquals ( net . sourceforge . squirrel_sql . client . update . downloader . event . DownloadEventType . DOWNLOAD_STARTED , classUnderTest . getType ( ) )
testGetContent ( ) { final net . yacy . cora . protocol . ResponseHeader okResponse = new net . yacy . cora . protocol . ResponseHeader ( org . apache . http . HttpStatus . SC_OK ) ; net . yacy . cora . document . id . DigestURL url = new net . yacy . cora . document . id . DigestURL ( "http://yacy.net" ) ; byte [ ] ur...
org . junit . Assert . assertArrayEquals ( fileContent , net . yacy . crawler . data . Cache . getContent ( urlHash ) )
suiteTestCountIsCorrect ( ) { org . junit . runner . Runner runner = org . junit . runner . Request . aClass ( org . junit . tests . running . classes . SuiteTest . All . class ) . getRunner ( ) ; "<AssertPlaceHolder>" ; } testCount ( ) { if ( isTest ( ) ) { return 1 ; } int result = 0 ; for ( org . junit . runner . De...
org . junit . Assert . assertEquals ( 2 , runner . testCount ( ) )
testAuthorizeDockerAccess ( ) { java . util . List < java . lang . String > scope = new java . util . ArrayList < java . lang . String > ( ) ; scope . add ( ( ( ( ( ( org . sagebionetworks . repo . manager . DockerManagerImplUnitTest . TYPE ) + ":" ) + ( org . sagebionetworks . repo . manager . DockerManagerImplUnitTes...
org . junit . Assert . assertNotNull ( token . getToken ( ) )
MutableBagIterable_removeOccurrences_throws ( ) { org . eclipse . collections . api . bag . sorted . MutableSortedBag < java . lang . Integer > mutableBag = this . newWith ( 3 , 3 , 3 , 2 , 2 , 1 ) ; "<AssertPlaceHolder>" ; } removeOccurrences ( java . lang . Object , int ) { synchronized ( this . getLock ( ) ) { retur...
org . junit . Assert . assertFalse ( mutableBag . removeOccurrences ( 4 , ( - 1 ) ) )
getAttributeValue ( ) { arithmeticFilter = spy ( new com . cetsoft . imcache . cache . search . filter . GTFilter ( "x" , new java . lang . Object ( ) ) ) ; int actualValue = ( ( java . lang . Integer ) ( arithmeticFilter . getAttributeValue ( new java . lang . Runnable ( ) { @ com . cetsoft . imcache . cache . search ...
org . junit . Assert . assertEquals ( 10 , actualValue )
testSerialization ( ) { org . jfree . data . xy . YIntervalDataItem item1 = new org . jfree . data . xy . YIntervalDataItem ( 1.0 , 2.0 , 1.5 , 2.5 ) ; org . jfree . data . xy . YIntervalDataItem item2 = ( ( org . jfree . data . xy . YIntervalDataItem ) ( org . jfree . chart . TestUtils . serialised ( item1 ) ) ) ; "<A...
org . junit . Assert . assertEquals ( item1 , item2 )
checkIfEngineExecutionContextIsPutOnParametersWhenEvaluateInputParameters ( ) { final java . util . Map < java . lang . String , org . bonitasoft . engine . expression . model . SExpression > parameters = java . util . Collections . emptyMap ( ) ; final org . bonitasoft . engine . core . expression . control . model . ...
org . junit . Assert . assertEquals ( toBeReturned , evaluateInputParameters )
testCreateValueCompositeKeyEmptyList ( ) { final java . lang . Object result = simpleKeyIndexDefinition . createValue ( java . util . Collections . emptyList ( ) ) ; "<AssertPlaceHolder>" ; } createValue ( java . lang . Object [ ] ) { if ( ! ( ( params [ 0 ] ) instanceof com . orientechnologies . orient . core . index ...
org . junit . Assert . assertNull ( result )
tesIngeschrevenetPersoonOnderCurateleOuderDanZestien ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = maakNieuwePersoonMetAdres ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . adres . BRBY05111Test . AANGEVER_ADRESHOUDING_CODE_INGESCHREVENE ) ; fina...
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
testCPFValidoDeveTerListaDeErrosVazia ( ) { br . com . caelum . stella . bean . validation . StellaNITBeanValidationTest . Modelo modelo = new br . com . caelum . stella . bean . validation . StellaNITBeanValidationTest . Modelo ( ) ; modelo . setNit ( "12345678919" ) ; java . util . Set < javax . validation . Constrai...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
walkByApplicationIdWithDistinctSettingValueTest ( ) { final java . util . concurrent . atomic . AtomicInteger amount = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; for ( final net . violet . platform . datamodel . Subscription aSubscription : Factories . SUBSCRIPTION . findAllByApplication ( Factories ...
org . junit . Assert . assertEquals ( 2 , amount . get ( ) )
getActiveSessionCount ( ) { org . apache . catalina . Manager manager = mock ( org . apache . catalina . Manager . class ) ; when ( this . context . getManager ( ) ) . thenReturn ( manager ) ; when ( manager . getActiveSessions ( ) ) . thenReturn ( 10 ) ; int result = this . catalinaContext . getActiveSessionCount ( ) ...
org . junit . Assert . assertEquals ( 10 , result )
testColorValuesNumericMethodMismatch ( ) { System . out . println ( "<sp>testColorValuesNumericMethodMismatch" ) ; setupParameters ( data , colors ) ; org . opengis . filter . expression . Function fn = finder . findFunction ( "interpolate" , parameters ) ; boolean gotEx = false ; try { fn . evaluate ( feature ( data [...
org . junit . Assert . assertTrue ( gotEx )
testRemoveAccessTokenUsingRefreshToken ( ) { org . springframework . security . oauth2 . common . OAuth2AccessToken token = orcidTokenStoreService . readAccessToken ( "persistent-token-1" ) ; orcidTokenStoreService . removeAccessTokenUsingRefreshToken ( token . getRefreshToken ( ) ) ; token = orcidTokenStoreService . r...
org . junit . Assert . assertNull ( token )
testExtensionUrlWithHl7Url ( ) { java . lang . String input = org . apache . commons . io . IOUtils . toString ( org . hl7 . fhir . dstu3 . hapi . validation . FhirInstanceValidatorDstu3Test . class . getResourceAsStream ( "/bug872-ext-with-hl7-url.json" ) , Charsets . UTF_8 ) ; ca . uhn . fhir . validation . Validatio...
org . junit . Assert . assertThat ( nonInfo , org . hamcrest . Matchers . empty ( ) )
shouldRaiseConstraintsViolationCauseEmailWithoutAt ( ) { org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05 customer = new org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05 ( "John" , "Smith" , "jsmithgmail.com" , "recovery@gmail.com" , "1234565" , new java . util . Date ( ) , new java . util ....
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
testHashCode ( ) { org . jfree . chart . axis . NumberTickUnit t1 = new org . jfree . chart . axis . NumberTickUnit ( 1.23 , new java . text . DecimalFormat ( "0.00" ) ) ; org . jfree . chart . axis . NumberTickUnit t2 = new org . jfree . chart . axis . NumberTickUnit ( 1.23 , new java . text . DecimalFormat ( "0.00" )...
org . junit . Assert . assertEquals ( h1 , h2 )
loadCatchesXWikiExceptionsThenReturnsNull ( ) { when ( this . dataHolder . get ( org . phenotips . data . internal . controller . ClinicalDiagnosisControllerTest . XPROPERTY_NAME ) ) . thenThrow ( new com . xpn . xwiki . XWikiException ( ) ) ; org . phenotips . data . PatientData < org . phenotips . data . Disorder > r...
org . junit . Assert . assertNull ( result )
testGetValueContainerTypeNull ( ) { new mockit . Expectations ( ) { { request . getParameterValues ( "name" ) ; result = null ; } } ; org . apache . servicecomb . common . rest . codec . param . ParamValueProcessor processor = createProcessor ( "name" , java . lang . String [ ] . class , null , false ) ; java . lang . ...
org . junit . Assert . assertNull ( value )
txn_lifecycle_05a ( ) { int x = org . apache . jena . system . Txn . calculateRead ( trans , ( ) -> { return org . apache . jena . system . Txn . calculateWrite ( trans , ( ) -> 56 ) ; } ) ; "<AssertPlaceHolder>" ; } calculateWrite ( T extends org . apache . jena . sparql . core . Transactional , java . util . function...
org . junit . Assert . assertEquals ( 56 , x )
testDefinePermissionToAllowViewDataRecord ( ) { com . liferay . portal . kernel . model . Role role1 = com . liferay . portal . kernel . test . util . RoleTestUtil . addRole ( RoleConstants . TYPE_REGULAR ) ; com . liferay . portal . kernel . model . User user1 = com . liferay . portal . kernel . test . util . UserTest...
org . junit . Assert . assertEquals ( expectedDEDataRecord , deDataRecord )
testNodeNameWrongParentType ( ) { org . apache . jackrabbit . oak . spi . state . NodeState root = new org . apache . jackrabbit . oak . plugins . memory . MemoryNodeStore ( ) . getRoot ( ) ; org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = root . builder ( ) ; org . apache . jackrabbit . oak . spi...
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
testVerifyWithInvalidKeyStoreChooserFails ( ) { java . lang . String signature = signer . sign ( com . springcryptoutils . core . signature . Base64EncodedSignerAndVerifierWithChoosersByAliasImplSpecificProviderTest . keyStoreChooser , com . springcryptoutils . core . signature . Base64EncodedSignerAndVerifierWithChoos...
org . junit . Assert . assertNotNull ( signature )
initializeNoStateReceived ( ) { doReturn ( future ) . when ( thingHandler . device . attributes ) . subscribeAndReceive ( any ( ) , any ( ) , anyString ( ) , any ( ) , anyInt ( ) ) ; doReturn ( future ) . when ( thingHandler . device . attributes ) . unsubscribe ( ) ; doNothing ( ) . when ( thingHandler ) . accept ( an...
org . junit . Assert . assertThat ( thingHandler . device . isInitialized ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testSortedWithComparator ( ) { int [ ] expected = new int [ ] { 19 , 9 , - 7 , 6 , 3 , 0 } ; int [ ] actual = com . annimon . stream . IntStream . of ( 6 , 3 , 9 , 0 , ( - 7 ) , 19 ) . sorted ( com . annimon . stream . Functions . descendingAbsoluteOrder ( ) ) . toArray ( ) ; "<AssertPlaceHolder>" ; } toArray ( ) { ret...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testManageFunctionAppWithDomainSsl ( ) { "<AssertPlaceHolder>" ; } runSample ( com . microsoft . azure . management . Azure ) { final java . lang . String app1Name = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomResourceName ( "Jon" 8 , 20 ) ; final java . lang . String app2...
org . junit . Assert . assertTrue ( com . microsoft . azure . management . appservice . samples . ManageFunctionAppWithDomainSsl . runSample ( azure ) )
getAnUnaccessibleUserWhateverTheDomainWhenInSilverpeasDomainAndWhenInFullIsolation ( ) { try { com . stratelia . webactiv . util . GeneralPropertiesManagerHelper . setDomainVisibility ( DomainProperties . DVIS_EACH ) ; com . stratelia . webactiv . beans . admin . UserDetail expectedUser = getTestResources ( ) . anExist...
org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( forbidden ) )
testGetLevel_1 ( ) { org . audit4j . core . exception . ValidationException fixture = new org . audit4j . core . exception . ValidationException ( "" , "" ) ; java . lang . String result = fixture . getLevel ( ) ; "<AssertPlaceHolder>" ; } getLevel ( ) { return level ; }
org . junit . Assert . assertEquals ( "" , result )
testCountJobs ( ) { when ( jobLocator . getJobNames ( ) ) . thenReturn ( java . util . Arrays . asList ( "job1" , "job2" ) ) ; when ( jobInstanceDao . getJobNames ( ) ) . thenReturn ( java . util . Arrays . asList ( "job3" , "job2" ) ) ; "<AssertPlaceHolder>" ; } countJobs ( ) { java . util . Collection < java . lang ....
org . junit . Assert . assertEquals ( 3 , service . countJobs ( ) )
noCompressionTypeFoundNullFailure ( ) { when ( obj . getKey ( ) ) . thenReturn ( java . nio . file . Paths . get ( com . amazonaws . codepipeline . jenkinsplugin . ExtractionToolsTest . FILE_PATH , "Yes.notanextension" ) . toString ( ) ) ; when ( metadata . getContentType ( ) ) . thenReturn ( "notanextension" ) ; final...
org . junit . Assert . assertEquals ( CompressionType . None , compressionType )
test2validateForUpdate ( ) { org . apache . ranger . plugin . model . RangerTagDef rangerServiceDef = new org . apache . ranger . plugin . model . RangerTagDef ( ) ; org . apache . ranger . entity . XXTagDef xXTagDef = new org . apache . ranger . entity . XXTagDef ( ) ; rangerTagDefService . validateForUpdate ( rangerS...
org . junit . Assert . assertNotNull ( rangerServiceDef )
should_upload_zipped_cmd_log ( ) { stubFor ( post ( urlEqualTo ( "/cmd/log/upload" ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) ) ) ; java . lang . ClassLoader classLoader = com . flow . platform . agent . test . ReportManagerTest . class . getClassLoader ( ) ; java . net . URL resource = classLoader . getReso...
org . junit . Assert . assertTrue ( result )
asListAndFilterByInCriterionOfCipherString ( ) { org . slim3 . datastore . model . Hoge hoge1 = new org . slim3 . datastore . model . Hoge ( ) ; org . slim3 . datastore . model . Hoge hoge2 = new org . slim3 . datastore . model . Hoge ( ) ; org . slim3 . datastore . model . Hoge hoge3 = new org . slim3 . datastore . mo...
org . junit . Assert . assertThat ( list . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testGetAssessmentAllClasses ( ) { java . util . HashMap < java . lang . String , org . societies . api . internal . privacytrust . privacyprotection . model . privacyassessment . AssessmentResultClassName > result2 ; result2 = assessment . getAssessmentAllClasses ( true , null , null ) ; "<AssertPlaceHolder>" ; } size ...
org . junit . Assert . assertEquals ( 4 , result2 . size ( ) )
testRenderImage ( ) { org . eclipse . swt . graphics . Image image = org . eclipse . nebula . widgets . grid . GridTestUtil . loadImage ( display , Fixture . IMAGE_100x50 ) ; group . setImage ( image ) ; lca . renderChanges ( group ) ; org . eclipse . rap . rwt . testfixture . internal . TestMessage message = org . ecl...
org . junit . Assert . assertEquals ( org . eclipse . rap . json . JsonArray . readFrom ( expected ) , actual )
testSetAdministratieveHandeling ( ) { final nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel administratieveHandeling = new nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel ( new nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortAdministratieveHandelin...
org . junit . Assert . assertEquals ( administratieveHandeling , resultaat . getAdministratieveHandeling ( ) )
findReturnsNullWhenVersionTagValueSetsInclusiveLowerMaxInclusiveHigherMin ( ) { java . lang . String mavenVersionRange = "(,1.0],[1.2,)" ; findReturnsValueWhenVersionTagValueIsSet ( mavenVersionRange ) ; "<AssertPlaceHolder>" ; } find ( ) { org . apache . maven . artifact . versioning . ArtifactVersion childMavenVersio...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
testMultipleHostTopologyUpdater__localhost__singleHost ( ) { final java . lang . String typeName = "hbase-site" ; final java . lang . String propertyName = "hbase.zookeeper.quorum" ; final java . lang . String originalValue = "localhost" ; final java . lang . String component1 = "ZOOKEEPER_SERVER" ; final java . lang ....
org . junit . Assert . assertEquals ( "testhost1a" , newValue )
getFieldsWithGettersOnly ( ) { java . util . Collection < java . lang . reflect . Field > fieldsWithGetters = org . mule . runtime . module . extension . internal . util . IntrospectionUtils . getFieldsWithGetters ( org . mule . test . petstore . extension . PhoneNumber . class , reflectionCache ) ; "<AssertPlaceHolder...
org . junit . Assert . assertThat ( fieldsWithGetters . size ( ) , org . hamcrest . CoreMatchers . is ( 4 ) )
first ( ) { "<AssertPlaceHolder>" ; } valueOf ( java . lang . String ) { return new org . arakhne . afc . gis . location . GeoId ( geoId ) ; }
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , this . list . first ( ) )
testUpdateExperiment ( ) { com . intuit . wasabi . experimentobjects . Experiment mockedExperiment = mock ( com . intuit . wasabi . experimentobjects . Experiment . class ) ; when ( mockedExperiment . getState ( ) ) . thenReturn ( Experiment . State . DELETED ) ; when ( mockedExperiment . getLabel ( ) ) . thenReturn ( ...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( mockedExperiment ) )
canPopulateLocalDateType ( ) { org . bson . Document object = new org . bson . Document ( ) ; org . mongolink . domain . mapper . LocalDate localDate = new org . mongolink . domain . mapper . LocalDate ( ) ; object . put ( "dateOfDay" , localDate . toDateTimeAtStartOfDay ( ) . getMillis ( ) ) ; org . mongolink . domain...
org . junit . Assert . assertThat ( instance . getDateOfDay ( ) , org . hamcrest . core . Is . is ( localDate ) )
GetAlertInformationEN13606SuccessTest ( ) { riv . clinicalprocess . healthcond . description . getalertinformationresponder . _2 . GetAlertInformationResponseType resp = getAlertInformationResponderInterface . getAlertInformation ( se . skl . skltpservices . npoadapter . test . integration . EndToEndIntegrationTest . L...
org . junit . Assert . assertFalse ( resp . getAlertInformation ( ) . isEmpty ( ) )
encodeCollectionFormatQueryParam_singleElementList ( ) { final java . util . List < java . lang . String > values = new java . util . ArrayList ( ) ; values . add ( "single" ) ; for ( com . oracle . bmc . util . internal . CollectionFormatType cft : com . oracle . bmc . util . internal . CollectionFormatType . values (...
org . junit . Assert . assertNotNull ( result )
testIllegalAssignToLocalAttr ( ) { java . lang . String action = "$tree<sp>=<sp>null;<sp>$st<sp>=<sp>null;<sp>$start<sp>=<sp>0;<sp>$stop<sp>=<sp>0;<sp>$text<sp>=<sp>0;" ; java . lang . String expecting = "retval.tree<sp>=<sp>null;<sp>retval.st<sp>=<sp>null;<sp>" ; org . antlr . test . ErrorQueue equeue = new org . antl...
org . junit . Assert . assertEquals ( expecting , found )
testHttpPoolingTrueWithFile ( ) { params . put ( WFSDataStoreFactory . USE_HTTP_CONNECTION_POOLING . key , true ) ; params . put ( WFSDataStoreFactory . URL . key , new java . net . URL ( "file://some/file" ) ) ; "<AssertPlaceHolder>" ; } getHttpClient ( java . util . Map ) { final java . net . URL capabilitiesURL = ( ...
org . junit . Assert . assertTrue ( ( ( new org . geotools . data . wfs . WFSDataStoreFactory ( ) . getHttpClient ( params ) ) instanceof org . geotools . data . ows . SimpleHttpClient ) )
testCompatibleAsIsPrecedence ( ) { final java . lang . String OUTER_CONFIG = "outer-config" ; org . apache . flink . api . common . typeutils . TypeSerializer < ? > [ ] testNestedSerializers = new org . apache . flink . api . common . typeutils . TypeSerializer < ? > [ ] { new org . apache . flink . api . common . type...
org . junit . Assert . assertTrue ( compatibility . isCompatibleAsIs ( ) )
testDeleteEntriesInDifferentCompany ( ) { addEntry ( 0 , 0 ) ; addEntry ( 0 , 0 ) ; addEntry ( 0 , 0 ) ; com . liferay . announcements . kernel . service . AnnouncementsEntryLocalServiceUtil . deleteEntries ( _company2 . getCompanyId ( ) , 0 , 0 ) ; java . util . List < com . liferay . announcements . kernel . model . ...
org . junit . Assert . assertEquals ( entries . toString ( ) , 3 , entries . size ( ) )
testConcurrentLocking ( ) { final java . net . URI newRepo = java . net . URI . create ( "COMMITTER-1:<sp>Squashing" 0 ) ; final org . uberfire . java . nio . fs . jgit . JGitFileSystemImpl fs = ( ( org . uberfire . java . nio . fs . jgit . JGitFileSystemImpl ) ( provider . newFileSystem ( newRepo , org . uberfire . ja...
org . junit . Assert . assertEquals ( 3 , getCommitsFromBranch ( ( ( org . uberfire . java . nio . fs . jgit . util . GitImpl ) ( fs . getGit ( ) ) ) , "master" ) . size ( ) )
test ( ) { java . util . concurrent . CyclicBarrier barrier = new java . util . concurrent . CyclicBarrier ( 3 ) ; org . netcrusher . datagram . bulk . DatagramBulkClient client = new org . netcrusher . datagram . bulk . DatagramBulkClient ( "CLIENT" , new java . net . InetSocketAddress ( org . netcrusher . datagram . ...
org . junit . Assert . assertArrayEquals ( producerDigest , consumerDigest )
shouldAllowCreationAndExecutionOfQueryObjectModel ( ) { org . modeshape . jcr . api . query . QueryManager queryManager = session . getWorkspace ( ) . getQueryManager ( ) ; org . modeshape . jcr . api . query . qom . QueryObjectModelFactory qomFactory = queryManager . getQOMFactory ( ) ; javax . jcr . query . qom . Sel...
org . junit . Assert . assertThat ( expr , org . hamcrest . core . Is . is ( expectedExpr ) )
testOneMismatchScope ( ) { java . util . Map < java . lang . String , java . lang . String > params = new java . util . HashMap ( ) ; params . put ( "localhost" 0 , "localhost" 4 ) ; params . put ( "username" , "localhost" 1 ) ; params . put ( "localhost" 4 , "123456" ) ; params . put ( "localhost" 2 , "petstore.r" ) ;...
org . junit . Assert . assertEquals ( 200 , statusCode )
testPopBeforeTimeout ( ) { io . nats . client . impl . MessageQueue q = new io . nats . client . impl . MessageQueue ( false ) ; java . lang . Thread t = new java . lang . Thread ( ( ) -> { try { java . lang . Thread . sleep ( 500 ) ; q . push ( new io . nats . client . impl . NatsMessage ( "test" ) ) ; } catch ( exp )...
org . junit . Assert . assertNotNull ( msg )
testSeverityBetweenFilter ( ) { org . opennms . web . alarm . filter . AlarmCriteria criteria = getCriteria ( new org . opennms . web . alarm . filter . SeverityBetweenFilter ( org . opennms . netmgt . model . OnmsSeverity . CLEARED , org . opennms . netmgt . model . OnmsSeverity . MAJOR ) ) ; org . opennms . netmgt . ...
org . junit . Assert . assertEquals ( 1 , alarms . length )
helpTest ( ) { for ( java . util . List < java . lang . String > candidates : getCandidatesLists ( "help" , true , ( - 1 ) ) ) { "<AssertPlaceHolder>" ; } } toString ( ) { return xmlFile . getAbsolutePath ( ) ; }
org . junit . Assert . assertTrue ( candidates . toString ( ) , candidates . contains ( "help" ) )
testGetNameTypeName ( ) { secureNodeBuilder . setProperty ( "name" , "value" , Type . NAME ) ; "<AssertPlaceHolder>" ; } getName ( java . lang . String ) { return delegate . getName ( name ) ; }
org . junit . Assert . assertEquals ( "value" , secureNodeBuilder . getName ( "name" ) )
testOnEntityDamageNotCovered ( ) { org . bukkit . event . entity . EntityDamageEvent . DamageCause cause = org . bukkit . event . entity . EntityDamageEvent . DamageCause . ENTITY_ATTACK ; org . bukkit . entity . Entity damagee = player ; org . bukkit . entity . Entity damager = player ; org . bukkit . event . entity ....
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testInitInnerTaskThrowUnhandledException ( ) { org . camunda . bpm . engine . runtime . ProcessInstance instance = rule . processInstance ( ) ; org . camunda . bpm . engine . task . Task eventSubprocessTask = rule . taskQuery ( ) . taskDefinitionKey ( "eventSubProcessTask1" ) . singleResult ( ) ; rule . getRuntimeServi...
org . junit . Assert . assertEquals ( "unhandledException" , e . getMessage ( ) )
testSimpleGetNegative ( ) { try { java . lang . Object [ ] args = new java . lang . Object [ ] { 88 } ; com . baidu . beidou . navi . client . SimpleNaviRpcClient client = new com . baidu . beidou . navi . client . SimpleNaviRpcClientBuilder ( ) . setIpPort ( com . baidu . beidou . navi . it . TestSimpleNaviRpcClient ....
org . junit . Assert . assertThat ( e . getClass ( ) . getName ( ) , org . hamcrest . Matchers . is ( com . baidu . beidou . navi . exception . rpc . CodecException . class . getName ( ) ) )
find_min_value_in_numeric_array_with_guava ( ) { int lowest = com . google . common . primitives . Ints . min ( numbers ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , lowest )
testGetPatternMap ( ) { java . util . Set < java . lang . String > expected = new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "SYN<sp>flood!<sp>From<sp>" 8 , "Dst<sp>IP<sp>session<sp>limit!<sp>From<sp>" 3 , "Dst<sp>IP<sp>session<sp>limit!<sp>From<sp>" 6 , "Dst<sp>IP<sp>session<sp>li...
org . junit . Assert . assertEquals ( expected , parser . getPatternKeySet ( ) )
testNotModelRestrictedFirmwareIsSuitableForThingWithSameThingType ( ) { org . eclipse . smarthome . core . thing . binding . firmware . Firmware firmware = org . eclipse . smarthome . core . thing . binding . firmware . FirmwareBuilder . create ( new org . eclipse . smarthome . core . thing . ThingTypeUID ( "binding:th...
org . junit . Assert . assertThat ( firmware . isSuitableFor ( thing ) , org . hamcrest . CoreMatchers . is ( true ) )
testMockPrivateMethod ( ) { final java . lang . String methodToTest = "crunchNumbers" ; final java . lang . String expected = "100%" ; com . captaindebug . GameStatistics instance = createPartialMock ( com . captaindebug . GameStatistics . class , methodToTest ) ; expectPrivate ( instance , methodToTest ) . andReturn (...
org . junit . Assert . assertEquals ( expected , result )
findProblems ( ) { org . osgi . framework . ServiceReference < com . liferay . blade . api . Migration > sr = _context . getServiceReference ( com . liferay . blade . api . Migration . class ) ; com . liferay . blade . api . Migration m = _context . getService ( sr ) ; java . util . List < com . liferay . blade . api ....
org . junit . Assert . assertEquals ( "" , 2 , problems . size ( ) )
testEqualsWithDifferentFormats ( ) { edu . illinois . library . cantaloupe . image . Info info2 = edu . illinois . library . cantaloupe . image . Info . builder ( ) . withSize ( 100 , 80 ) . withTileSize ( 50 , 40 ) . withOrientation ( Orientation . ROTATE_90 ) . withNumResolutions ( 3 ) . withFormat ( Format . GIF ) ....
org . junit . Assert . assertFalse ( instance . equals ( info2 ) )
stateMachineTraits086Test ( ) { cruise . umple . compiler . UmpleModel model = getModelByFilename ( "trait_test_data_0045.ump" ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { result = e . getMessage ( ) . contains ( "229" ) ; } finally { "<AssertPlaceHolder>" ; cruise . umpl...
org . junit . Assert . assertTrue ( result )
testGenerateDefaultConfigurationForSchemaWithReusedType ( ) { java . nio . file . Path schemaPath = java . nio . file . Paths . get ( java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( "generation/schemaWithReusedType.json" ) . toURI ( ) ) ; org . kaaproject . kaa . server . common . c...
org . junit . Assert . assertTrue ( generatedConfigurationGenericRecord . equals ( expectedGeneratedConfigurationGenericRecord ) )
shouldBuildADescriptiveQueryInfoString ( ) { java . lang . String expectedInfo = "DELETE<sp>{<sp>Cell{<sp>my_family<sp>},<sp>Cell{<sp>my_series<sp>},<sp>Cell{<sp>1443796900000<sp>},<sp>NULL<sp>}<sp>FROM<sp>TABLE<sp>my_table" ; com . basho . riak . client . core . operations . ts . DeleteOperation cmd = new com . basho ...
org . junit . Assert . assertEquals ( expectedInfo , cmd . getQueryInfo ( ) )
testSchemaVersionStatesThroughIds ( ) { com . hortonworks . registries . schemaregistry . SchemaMetadata schemaMetadata = new com . hortonworks . registries . schemaregistry . SchemaMetadata . Builder ( ( ( TEST_NAME_RULE . getMethodName ( ) ) + "-schema" ) ) . type ( AvroSchemaProvider . TYPE ) . schemaGroup ( "group"...
org . junit . Assert . assertEquals ( targetStateId , com . hortonworks . registries . schemaregistry . avro . AvroSchemaRegistryClientTest . SCHEMA_REGISTRY_CLIENT . getSchemaVersionInfo ( schemaIdVersion_2 ) . getStateId ( ) )
testMustNotBeNullOrEmptyTArrayString ( ) { try { org . jbasics . checker . ContractCheck . mustNotBeNullOrEmpty ( ( ( java . lang . String [ ] ) ( null ) ) , "test" ) ; org . junit . Assert . fail ( "ContractViolationException<sp>expected" ) ; } catch ( org . jbasics . checker . ContractViolationException e ) { } try {...
org . junit . Assert . assertArrayEquals ( temp , org . jbasics . checker . ContractCheck . mustNotBeNullOrEmpty ( temp , "test" ) )
testGetBlockExperimentComparison ( ) { System . out . println ( "getBlockExperimentComparison" ) ; gov . sandia . cognition . statistics . method . MultipleComparisonExperiment instance = this . createInstance ( ) ; gov . sandia . cognition . statistics . method . BlockExperimentComparison < java . lang . Number > bloc...
org . junit . Assert . assertNotNull ( blockExperimentComparison )
canGetLineText ( ) { org . eclipse . swtbot . swt . finder . widgets . SWTBotTableItem line = table . getTableItem ( "Index:2" ) ; "<AssertPlaceHolder>" ; } getText ( ) { return org . eclipse . swtbot . swt . finder . utils . SWTUtils . getText ( widget ) ; }
org . junit . Assert . assertEquals ( "Index:2" , line . getText ( ) )
testInvalidRuleAttribute ( ) { java . lang . String action = "$r.blort" ; java . lang . String expecting = action ; org . antlr . test . ErrorQueue equeue = new org . antlr . test . ErrorQueue ( ) ; org . antlr . test . ErrorManager . setErrorListener ( equeue ) ; org . antlr . test . Grammar g = new org . antlr . test...
org . junit . Assert . assertEquals ( expecting , found )
testBasic1 ( ) { int size = 100000 ; java . util . Random r = new java . util . Random ( ) ; long [ ] ints = new long [ size ] ; tl . lin . data . array . ArrayListOfLongs list = new tl . lin . data . array . ArrayListOfLongs ( ) ; for ( int i = 0 ; i < size ; i ++ ) { long k = r . nextLong ( ) ; list . add ( k ) ; int...
org . junit . Assert . assertEquals ( ints [ i ] , v )
should_stop_execution_if_eachFunction_returns_false ( ) { org . openqa . selenium . WebElement someSpan = testinfrastructure . testdouble . org . openqa . selenium . WebElementMother . createWebElementWithTag ( "span" ) ; org . openqa . selenium . WebElement someDiv = testinfrastructure . testdouble . org . openqa . se...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
testOutputFormats ( ) { org . w3c . dom . Document doc = getAsDOM ( "wfs?service=WFS&request=getCapabilities&version=2.0.0" ) ; org . custommonkey . xmlunit . XpathEngine engine = org . custommonkey . xmlunit . XMLUnit . newXpathEngine ( ) ; org . w3c . dom . NodeList formats = engine . getMatchingNodes ( "//ows:Operat...
org . junit . Assert . assertEquals ( s1 , s2 )
testColumnManagementGroupTitleWorkItemInsertFactEmpty ( ) { final org . drools . workbench . models . guided . dtable . shared . model . ActionWorkItemInsertFactCol52 column = mock ( org . drools . workbench . models . guided . dtable . shared . model . ActionWorkItemInsertFactCol52 . class ) ; doReturn ( org . drools ...
org . junit . Assert . assertEquals ( org . drools . workbench . screens . guided . dtable . client . wizard . column . pages . common . DecisionTableColumnViewUtilsTest . COLUMN_HEADER , org . drools . workbench . screens . guided . dtable . client . wizard . column . pages . common . DecisionTableColumnViewUtils . ge...
deleteComposedTaskMissingChildTasks ( ) { org . springframework . cloud . dataflow . server . service . impl . DefaultTaskExecutionServiceTests . initializeSuccessfulRegistry ( appRegistry ) ; java . lang . String dsl = "AAA<sp>&&<sp>BBB<sp>&&<sp>CCC" ; taskSaveService . saveTaskDefinition ( "deleteTask" , dsl ) ; org ...
org . junit . Assert . assertThat ( ( preDeleteSize - 3 ) , org . hamcrest . core . Is . is ( org . hamcrest . CoreMatchers . equalTo ( taskDefinitionRepository . count ( ) ) ) )
normalize2 ( ) { org . diirt . util . stats . Range range = org . diirt . util . stats . Ranges . range ( ( - 10.0 ) , 10.0 ) ; "<AssertPlaceHolder>" ; } normalize ( double ) { return ( value - ( getMinimum ( ) ) ) / ( ( getMaximum ( ) ) - ( getMinimum ( ) ) ) ; }
org . junit . Assert . assertThat ( range . normalize ( 10.0 ) , equalTo ( 1.0 ) )
testSmallDistances ( ) { int [ ] repeatedArray = new int [ ] { 0 } ; int [ ] uniqueArray = new int [ ] { 1 } ; org . apache . commons . math . stat . clustering . KMeansPlusPlusClustererTest . CloseIntegerPoint repeatedPoint = new org . apache . commons . math . stat . clustering . KMeansPlusPlusClustererTest . CloseIn...
org . junit . Assert . assertTrue ( uniquePointIsCenter )
map_A$Function1 ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > target = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . String > f = new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . String >...
org . junit . Assert . assertThat ( actual . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testGetReferencedColumnNameFunctionAs ( ) { org . sagebionetworks . table . query . model . DerivedColumn element = org . sagebionetworks . table . query . util . SqlElementUntils . createDerivedColumn ( "max(bar)<sp>as<sp>\"foo\"" ) ; "<AssertPlaceHolder>" ; } getReferencedColumnName ( ) { org . sagebionetworks . tabl...
org . junit . Assert . assertEquals ( "bar" , element . getReferencedColumnName ( ) )
testParseMailConfigMissingFile ( ) { org . hyperic . tools . ant . ServerConfigUpgrader upgrader = new org . hyperic . tools . ant . ServerConfigUpgrader ( ) ; upgrader . setUpgradeDir ( "/foo/bar" ) ; java . util . Properties props = new java . util . Properties ( ) ; upgrader . parseMailConfig ( props ) ; "<AssertPla...
org . junit . Assert . assertTrue ( props . isEmpty ( ) )
testVisitorLongitudeT ( ) { request . setAuthToken ( "12345678901234567890123456789012" ) ; request . setVisitorLongitude ( 20.5 ) ; "<AssertPlaceHolder>" ; } getVisitorLongitude ( ) { return ( ( java . lang . Double ) ( getParameter ( org . piwik . java . tracking . PiwikRequest . VISITOR_LONGITUDE ) ) ) ; }
org . junit . Assert . assertEquals ( new java . lang . Double ( 20.5 ) , request . getVisitorLongitude ( ) )
testAddNotification_nullTx_assertException ( ) { org . nhindirect . monitor . processor . impl . DefaultDuplicateNotificationStateManager mgr = new org . nhindirect . monitor . processor . impl . DefaultDuplicateNotificationStateManager ( ) ; mgr . setDao ( notifDao ) ; boolean execptionOccured = false ; try { mgr . ad...
org . junit . Assert . assertTrue ( execptionOccured )