input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testRender ( ) { entryPointManager . register ( TestRequest . DEFAULT_SERVLET_PATH , org . eclipse . rap . rwt . internal . lifecycle . RWTLifeCycle_Test . TestEntryPoint . class , null ) ; org . eclipse . rap . rwt . internal . lifecycle . RWTLifeCycle lifeCycle = org . eclipse . rap . rwt . internal . lifecycle . RWT... | org . junit . Assert . assertTrue ( ( ( message . getOperationCount ( ) ) > 0 ) ) |
testNoOpMap ( ) { java . util . Map < java . lang . String , java . lang . String > noop = new OakFileDataStore . NoOpMap < java . lang . String , java . lang . String > ( ) ; noop . put ( "a" , "b" ) ; noop . remove ( "foo" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ) == 0 ; } | org . junit . Assert . assertTrue ( noop . isEmpty ( ) ) |
shouldResetCreationTimeWithRunnerStatusIsDoneAndDescriptionIsNull ( ) { runner . setStatus ( Runner . Status . DONE ) ; runner . resetCreationTime ( ) ; "<AssertPlaceHolder>" ; } getCreationTime ( ) { return org . eclipse . che . ide . ext . runner . client . models . RunnerImpl . DATE_TIME_FORMAT . format ( new java .... | org . junit . Assert . assertThat ( runner . getCreationTime ( ) , org . hamcrest . CoreMatchers . equalTo ( org . eclipse . che . ide . ext . runner . client . models . RunnerImpl . DATE_TIME_FORMAT . format ( new java . util . Date ( java . lang . System . currentTimeMillis ( ) ) ) ) ) |
testSingleByte ( ) { java . io . InputStream in = new org . zeroturnaround . jf2012 . concurrency . cancel . io . InterruptibleInputStream ( new java . io . ByteArrayInputStream ( new byte [ ] { 100 } ) ) ; try { int b = in . read ( ) ; "<AssertPlaceHolder>" ; } finally { in . close ( ) ; } } read ( ) { while ( true ) ... | org . junit . Assert . assertEquals ( 100 , b ) |
escapeJSON_noControlChars ( ) { java . lang . String input = "abcdefghijklmnopqrstuvwxyz1234567890.,?!%&$()=+*#':;@<>|-_~{}[]^" ; java . lang . String escaped = org . oscm . json . EscapeUtils . escapeJSON ( input ) ; "<AssertPlaceHolder>" ; } escapeJSON ( java . lang . String ) { if ( aText == null ) { return null ; }... | org . junit . Assert . assertEquals ( input , escaped ) |
shouldCreateIteratorOverValuesWhenSuppliedIteratorOfUnknownObjects ( ) { java . util . List < java . lang . String > values = new java . util . ArrayList < java . lang . String > ( ) ; for ( int i = 0 ; i != 10 ; ++ i ) { values . add ( ( "dna:something" + i ) ) ; } java . util . Iterator < org . modeshape . jcr . valu... | org . junit . Assert . assertThat ( iter . next ( ) , org . hamcrest . core . Is . is ( nameFactory . create ( valueIter . next ( ) ) ) ) |
isDefinedInContextWhereDefinedForRelationAndContextIdMatchesPropertyContextButDifferentOriginShouldReturnFalse ( ) { java . lang . Integer propertyContextId = 1 ; ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditProperty . Origin loadedFor = ResourceEditProperty . Origin . RELATION ; ch . puzzl... | org . junit . Assert . assertFalse ( definedInContext ) |
instantiation ( ) { com . github . seratch . taskun . scheduler . impl . TaskunImpl target = new com . github . seratch . taskun . scheduler . impl . TaskunImpl ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( target ) |
testLoggerRedirector ( ) { io . cdap . cdap . explore . service . HiveStreamRedirectorTest . CountingLogger logger = new io . cdap . cdap . explore . service . HiveStreamRedirectorTest . CountingLogger ( ) ; org . apache . hadoop . hive . ql . session . SessionState sessionState = new org . apache . hadoop . hive . ql ... | org . junit . Assert . assertEquals ( 5 , logger . getInfoLogs ( ) ) |
testNonEqualCharset ( ) { org . apache . olingo . odata2 . core . commons . ContentType t1 = org . apache . olingo . odata2 . core . commons . ContentType . create ( "aaa/bbb;charset=c1" ) ; org . apache . olingo . odata2 . core . commons . ContentType t2 = org . apache . olingo . odata2 . core . commons . ContentType ... | org . junit . Assert . assertFalse ( t1 . equals ( t2 ) ) |
testUnsignedVariableBits33 ( ) { final long [ ] size = new long [ ] { 5 , 5 } ; final net . imglib2 . img . array . ArrayImg < net . imglib2 . type . numeric . integer . UnsignedVariableBitLengthType , net . imglib2 . img . basictypeaccess . array . LongArray > img = net . imglib2 . img . array . ArrayImgs . unsignedVa... | org . junit . Assert . assertArrayEquals ( expected , actual ) |
testGetName ( ) { org . eclipse . swt . browser . BrowserFunction function = new org . eclipse . swt . browser . BrowserFunction ( browser , org . eclipse . swt . browser . BrowserFunction_Test . FUNC ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; } | org . junit . Assert . assertEquals ( org . eclipse . swt . browser . BrowserFunction_Test . FUNC , function . getName ( ) ) |
testMappingTransform ( ) { org . hl7 . fhir . dstu3 . hapi . validation . Map < java . lang . String , org . hl7 . fhir . dstu3 . hapi . validation . StructureMap > maps = new org . hl7 . fhir . dstu3 . hapi . validation . HashMap < java . lang . String , org . hl7 . fhir . dstu3 . hapi . validation . StructureMap > ( ... | org . junit . Assert . assertEquals ( 1 , result . size ( ) ) |
testBasicUpdateOfMessage ( ) { myValidatorManager . addRoot ( myShop , new com . rcpcompany . uibindings . validators . ConstraintValidatorAdapter ( ) ) ; myItem . setPrice ( 10.0F ) ; sleep ( ( 2 * ( com . rcpcompany . uibindings . internal . validators . BindingMessageCollectionTest . VD ) ) ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertEquals ( 0 , myValidatorManager . getUnboundMessages ( ) . size ( ) ) |
all_by_excluding_where ( ) { "<AssertPlaceHolder>" ; } fetch ( ) { return innerList ( ) ; } | org . junit . Assert . assertEquals ( 4 , query . fetch ( ) . size ( ) ) |
singleByteReadWorksAsExpected ( ) { final java . io . File input = getFile ( "zstandard.testdata.zst" ) ; final java . io . File original = getFile ( "zstandard.testdata" ) ; final long originalFileLength = original . length ( ) ; byte [ ] originalFileContent = new byte [ ( ( int ) ( originalFileLength ) ) ] ; try ( ja... | org . junit . Assert . assertEquals ( originalFileContent [ 0 ] , in . read ( ) ) |
shouldNotRespondToPreBuildEvents ( ) { org . eclipse . core . resources . IResourceChangeEvent event = new org . eclipse . core . internal . events . ResourceChangeEvent ( this , org . eclipse . core . resources . IResourceChangeEvent . PRE_BUILD , org . eclipse . core . resources . IncrementalProjectBuilder . AUTO_BUI... | org . junit . Assert . assertFalse ( processor . canProcessEvent ( event ) ) |
default_filter_does_allow_type_requests ( ) { com . flextrade . jfixture . utility . RequestFilter filter = com . flextrade . jfixture . utility . RequestFilter . onlyDefault ( ) ; boolean allow = filter . allow ( com . flextrade . jfixture . utility . SpecimenType . of ( java . lang . String . class ) ) ; "<AssertPlac... | org . junit . Assert . assertTrue ( allow ) |
testSerialization ( ) { org . jfree . chart . annotations . XYBoxAnnotation a1 = new org . jfree . chart . annotations . XYBoxAnnotation ( 1.0 , 2.0 , 3.0 , 4.0 , new java . awt . BasicStroke ( 1.2F ) , java . awt . Color . RED , java . awt . Color . BLUE ) ; org . jfree . chart . annotations . XYBoxAnnotation a2 = ( (... | org . junit . Assert . assertEquals ( a1 , a2 ) |
testHeeftOfKrijgtNederlandseNationaliteit_eersteInschrijving_AlleenAndereNationaliteit ( ) { final nl . bzk . brp . bijhouding . bericht . model . ElementBuilder builder = new nl . bzk . brp . bijhouding . bericht . model . ElementBuilder ( ) ; final int peilDatum = 20160101 ; final nl . bzk . brp . bijhouding . berich... | org . junit . Assert . assertFalse ( bijhoudingPersoon . heeftNederlandseNationaliteitOfIndicatieBehandeldAlsNederlander ( peilDatum ) ) |
testNumIdleUpdatedOnCheckIn ( ) { com . bazaarvoice . ostrich . pool . SingleThreadedClientServiceCache < com . bazaarvoice . ostrich . pool . SingleThreadedClientServiceCacheTest . Service > cache = newCache ( ) ; cache . checkIn ( cache . checkOut ( com . bazaarvoice . ostrich . pool . SingleThreadedClientServiceCach... | org . junit . Assert . assertEquals ( 1 , cache . getNumIdleInstances ( com . bazaarvoice . ostrich . pool . SingleThreadedClientServiceCacheTest . END_POINT ) ) |
testEulerNumber_fullSquareC8 ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 6 , 6 ) ; for ( int i = 0 ; i < 6 ; i ++ ) { for ( int j = 0 ; j < 6 ; j ++ ) { image . set ( i , j , 255 ) ; } } int euler = inra . ijpb . measure . IntrinsicVolumes2D . eulerNumber ( image , 8 ) ; "<AssertPlace... | org . junit . Assert . assertEquals ( 1 , euler ) |
testSize ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createBlob ( "12345" . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return casesMap . size ( ) ; } | org . junit . Assert . assertEquals ( 5 , d . size ( ) ) |
progressPriorTo20181018 ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; com . fasterxml . jackson . databind . node . ObjectNode root = mapper . createObjectNode ( ) ; root . set ( "status" , mapper . createObjectNode ( ) . put ( "@id" , E... | org . junit . Assert . assertTrue ( actual . containsAllLogMissing ( expected ) ) |
testPropertiesMarshallUnmarshall ( ) { org . eclipse . kura . internal . xml . marshaller . unmarshaller . XmlMarshallUnmarshallImpl xmlMarshallerImpl = new org . eclipse . kura . internal . xml . marshaller . unmarshaller . XmlMarshallUnmarshallImpl ( ) ; java . lang . String pid = "org.eclipse.kura.cloud.CloudService... | org . junit . Assert . assertEquals ( properties , properties1 ) |
testAppendPartialRowsHappy ( ) { org . sagebionetworks . repo . model . table . RowReferenceSet results = manager . appendPartialRows ( user , tableId , partialSet , mockProgressCallback , transactionId ) ; "<AssertPlaceHolder>" ; verify ( mockTableManagerSupport , times ( 1 ) ) . setTableToProcessingAndTriggerUpdate (... | org . junit . Assert . assertNotNull ( results ) |
longestCommonSubstring ( ) { "<AssertPlaceHolder>" ; } longestCommonSubstring ( ) { org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringMetrics . longestCommonSubstring ( ) ) ; } | org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringMetrics . longestCommonSubstring ( ) ) |
simpleQueryParam_encoding_expectDecodedParam ( ) { com . amazonaws . serverless . proxy . model . AwsProxyRequest request = getRequestBuilder ( "/echo/decoded-param" , "GET" ) . queryString ( "param" , com . amazonaws . serverless . proxy . jersey . JerseyParamEncodingTest . SIMPLE_ENCODED_PARAM ) . build ( ) ; com . a... | org . junit . Assert . assertEquals ( 200 , resp . getStatusCode ( ) ) |
testSetCombinationFilterParentNull ( ) { java . lang . String combinationFilter = "filter" ; hudson . matrix . MatrixProject childProject1 = new hudson . matrix . MatrixProjectTest . MatrixProjectMock ( "child1" ) ; childProject1 . setCombinationFilter ( combinationFilter ) ; "<AssertPlaceHolder>" ; } getCombinationFil... | org . junit . Assert . assertEquals ( childProject1 . getCombinationFilter ( ) , combinationFilter ) |
testGetMappingFromHiveColumn ( ) { java . util . List < java . lang . String > hiveColumns = java . util . Arrays . asList ( "rowid" , "col1" , "col2" , "col3" ) ; java . util . List < org . apache . hadoop . hive . serde2 . typeinfo . TypeInfo > columnTypes = java . util . Arrays . < org . apache . hadoop . hive . ser... | org . junit . Assert . assertEquals ( accumuloMapping , mapping . getMappingSpec ( ) ) |
addVector3D ( ) { org . arakhne . afc . math . geometry . d3 . continuous . Vector3f v1 = new org . arakhne . afc . math . geometry . d3 . continuous . Vector3f ( this . random . nextDouble ( ) , this . random . nextDouble ( ) , this . random . nextDouble ( ) ) ; org . arakhne . afc . math . geometry . d3 . continuous ... | org . junit . Assert . assertTrue ( sum . equals ( v1 ) ) |
earliest_shouldGetAnEmptyResultGivenAnEmptyResult ( ) { org . openmrs . logic . result . Result parentResult = new org . openmrs . logic . result . EmptyResult ( ) ; "<AssertPlaceHolder>" ; } earliest ( ) { if ( isSingleResult ( ) ) { return this ; } org . openmrs . logic . result . Result first = org . openmrs . logic... | org . junit . Assert . assertEquals ( new org . openmrs . logic . result . EmptyResult ( ) , parentResult . earliest ( ) ) |
testParseValueForDatabaseWrite ( ) { java . lang . Double expected = new java . lang . Double ( 123.456 ) ; java . lang . Object objectValue = parser . parseValueForDatabaseWrite ( "123.456" ) ; "<AssertPlaceHolder>" ; } parseValueForDatabaseWrite ( java . lang . String ) { if ( Boolean . TRUE . toString ( ) . equalsIg... | org . junit . Assert . assertEquals ( expected , objectValue ) |
testEqualsWithRelation ( ) { edu . ucla . sspace . dependency . SimpleDependencyTreeNode node1 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "cat" , "n" , "c" , 0 ) ; edu . ucla . sspace . dependency . DependencyTreeNode node2 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "ca... | org . junit . Assert . assertEquals ( node1 , node2 ) |
testGetTags ( ) { java . util . List < org . finra . herd . model . api . xml . TagChild > tagChildren = new java . util . ArrayList ( ) ; tagChildren . add ( new org . finra . herd . model . api . xml . TagChild ( new org . finra . herd . model . api . xml . TagKey ( TAG_TYPE , TAG_CODE ) , false ) ) ; tagChildren . a... | org . junit . Assert . assertEquals ( tagListResponse , resultTagKeys ) |
testSearchBadDN ( ) { javax . naming . ldap . LdapContext ctx = ( ( javax . naming . ldap . LdapContext ) ( getWiredContext ( getLdapServer ( ) ) . lookup ( org . apache . directory . server . operations . search . SearchIT . BASE ) ) ) ; javax . naming . directory . SearchControls controls = new javax . naming . direc... | org . junit . Assert . assertTrue ( true ) |
testApply_Payload_ApplicableIndexButNoIndexFlagIsSet ( ) { org . lilyproject . util . repo . RecordEvent recordEvent = new org . lilyproject . util . repo . RecordEvent ( ) ; org . lilyproject . util . repo . RecordEvent . IndexRecordFilterData filterData = new org . lilyproject . util . repo . RecordEvent . IndexRecor... | org . junit . Assert . assertEquals ( 0 , walEdit . size ( ) ) |
testMergeSingleStrings ( ) { final java . util . List < org . apache . commons . lang3 . tuple . Pair < java . lang . String , java . lang . String > > outputs = new java . util . ArrayList < org . apache . commons . lang3 . tuple . Pair < java . lang . String , java . lang . String > > ( ) ; uk . org . rbc1b . roms . ... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( new org . apache . commons . lang3 . tuple . ImmutablePair < java . lang . String , java . lang . String > ( "foo" , "foo" ) ) , outputs ) |
execute_metacharacter_variables ( ) { java . io . File file = folder . newFile ( "$\"\'`\\=<sp>file" ) ; org . junit . Assume . assumeTrue ( file . delete ( ) ) ; java . io . File script = folder . newFile ( "script.sh" ) ; try ( java . io . PrintWriter writer = new java . io . PrintWriter ( script ) ) { writer . print... | org . junit . Assert . assertThat ( file . exists ( ) , is ( true ) ) |
testTimestamp ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; java . util . List < org . apache . wss4j . stax . ext . WSSConstants . Action > actions =... | org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) ) |
charArrayCompare1 ( ) { java . lang . String src = "" ; int offset = 7 ; char [ ] dest = new char [ ] { ' | org . junit . Assert . assertEquals ( false , retval ) |
testIterator ( ) { com . github . krukow . clj_lang . PersistentHashSet < java . lang . Integer > dsSet = com . github . krukow . clj_lang . PersistentHashSet . emptySet ( ) ; java . util . HashSet < java . lang . Integer > hs = null ; for ( int i = 0 ; i < 20000 ; i ++ ) { hs = new java . util . HashSet < java . lang ... | org . junit . Assert . assertEquals ( i , hs . size ( ) ) |
testGetStringWithValidProperty ( ) { final edu . illinois . library . cantaloupe . config . Configuration instance = getInstance ( ) ; instance . setProperty ( "test1" , "cats" ) ; "<AssertPlaceHolder>" ; } getString ( java . lang . String ) { java . lang . Object value = configuration . get ( key ) ; if ( value != nul... | org . junit . Assert . assertEquals ( "cats" , instance . getString ( "test1" ) ) |
testReloadWithPasswordFile ( ) { java . security . KeyPair kp = org . apache . hadoop . security . ssl . KeyStoreTestUtil . generateKeyPair ( "RSA" ) ; cert1 = org . apache . hadoop . security . ssl . KeyStoreTestUtil . generateCertificate ( "/testreload.jks" 1 , kp , 30 , "SHA1withRSA" ) ; cert2 = org . apache . hadoo... | org . junit . Assert . assertEquals ( 1 , tm . getAcceptedIssuers ( ) . length ) |
testSetAccelerator_OnSeparator ( ) { menuItem = new org . eclipse . swt . widgets . MenuItem ( menu , org . eclipse . swt . SWT . SEPARATOR ) ; menuItem . setAccelerator ( ( ( org . eclipse . swt . SWT . ALT ) | 'A' ) ) ; "<AssertPlaceHolder>" ; } getAccelerator ( ) { if ( enableAccelerator ) { return super . getAccele... | org . junit . Assert . assertEquals ( ( ( org . eclipse . swt . SWT . ALT ) | 'A' ) , menuItem . getAccelerator ( ) ) |
testGeneratedId ( ) { org . springframework . data . mongodb . core . mapping . GeneratedId genId = new org . springframework . data . mongodb . core . mapping . GeneratedId ( "test" ) ; template . insert ( genId ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertNotNull ( genId . getId ( ) ) |
createAndGetNote ( ) { waitForNotesRegistration ( ) ; java . lang . Thread . sleep ( ( ( ( ocelliRefreshIntervalSeconds ) * 1000 ) + 1000L ) ) ; com . welflex . spring . web . notes . Note note = new com . welflex . spring . web . notes . Note ( "Test" ) ; java . lang . Long noteId = notesClient . createNote ( note ) ;... | org . junit . Assert . assertEquals ( note , notesClient . getNote ( noteId ) ) |
test_RcWorkerKillOperation ( ) { com . hazelcast . simulator . coordinator . operations . RcWorkerKillOperation op = new com . hazelcast . simulator . coordinator . operations . RcWorkerKillOperation ( "bla" , mock ( com . hazelcast . simulator . coordinator . registry . WorkerQuery . class ) ) ; java . lang . String e... | org . junit . Assert . assertSame ( expected , result ) |
testGetPrincipal ( ) { "<AssertPlaceHolder>" ; verify ( dlg , times ( 2 ) ) . getPrincipal ( ) ; verify ( autosaveMgr , never ( ) ) . autosave ( ) ; } getPrincipal ( ) { return principal ; } | org . junit . Assert . assertEquals ( dlg . getPrincipal ( ) , a . getPrincipal ( ) ) |
testAdjustTLSContext ( ) { de . rub . nds . tlsattacker . core . protocol . message . extension . ClientCertificateTypeExtensionMessage msg = new de . rub . nds . tlsattacker . core . protocol . message . extension . ClientCertificateTypeExtensionMessage ( ) ; msg . setCertificateTypes ( de . rub . nds . tlsattacker . ... | org . junit . Assert . assertThat ( certList , org . hamcrest . CoreMatchers . is ( context . getClientCertificateTypeDesiredTypes ( ) ) ) |
testDefaultSort01 ( ) { java . util . LinkedHashSet < org . apache . tomcat . util . net . jsse . openssl . Cipher > input = new java . util . LinkedHashSet ( ) ; input . add ( Cipher . TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 ) ; input . add ( Cipher . TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 ) ; input . add ( C... | org . junit . Assert . assertEquals ( expected . toString ( ) , result . toString ( ) ) |
shouldGenerateAStringBetweenFromAndTo ( ) { int length = test ( 4 , 10 , 0 ) ; "<AssertPlaceHolder>" ; } test ( int , int , int ) { ch . nerdin . generators . testdata . framework . FieldProperty property = new ch . nerdin . generators . testdata . framework . FieldProperty ( ) ; if ( length != 0 ) { property . setMinL... | org . junit . Assert . assertTrue ( ( ( length >= 4 ) && ( length <= 10 ) ) ) |
testElseNoBatch ( ) { final org . jboss . as . cli . CommandContext ctx = org . jboss . as . test . integration . management . util . CLITestUtil . getCommandContext ( cliOut ) ; try { ctx . connectController ( ) ; ctx . handle ( getAddPropertyReq ( "1" ) ) ; ctx . handle ( ( "if<sp>result.value==\"3\"<sp>of<sp>" + ( g... | org . junit . Assert . assertEquals ( "2" , getValue ( ) ) |
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new com . flags... | org . junit . Assert . assertNotNull ( fixture ) |
testFindCallOperation_withoutMatch ( ) { writer . appendCall ( "w2" , "method1" , null ) ; writer . appendCall ( "w1" , "method2" , null ) ; org . eclipse . rap . rwt . testfixture . internal . TestMessage message = getMessage ( ) ; "<AssertPlaceHolder>" ; } findCallOperation ( java . lang . String , java . lang . Stri... | org . junit . Assert . assertNull ( message . findCallOperation ( "w1" , "method1" ) ) |
shouldTreatAutoAndEmptyHostTheSameStreaming ( ) { org . apache . beam . runners . flink . FlinkPipelineOptions options = org . apache . beam . sdk . options . PipelineOptionsFactory . as ( org . apache . beam . runners . flink . FlinkPipelineOptions . class ) ; options . setRunner ( org . apache . beam . runners . flin... | org . junit . Assert . assertEquals ( sev . getClass ( ) , sev2 . getClass ( ) ) |
testFragmentWithAction2 ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "R:<sp>\'kw1a\'<sp>f1=ID<sp>\'kw1b\'<sp>F;<sp>fragment<sp>F<sp>returns<sp>R:<sp>\'kw2a\'<sp>{A.prev=current}<sp>\'kw2b\'<sp>f2=ID<sp>\'kw2c\';" ) ;... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldReturnNegativeNumber ( ) { int random = dataFactory . getNumberBetween ( Integer . MIN_VALUE , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } getNumberBetween ( int , int ) { if ( max < min ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( "Minimum<sp>must<sp>be<sp>less<sp>than<sp>mini... | org . junit . Assert . assertTrue ( ( random < 0 ) ) |
testGetConfigDataTwiceYieldsSameObj ( ) { final com . palominolabs . crm . sf . soap . BindingConfig data = this . bundle . getBindingConfig ( ) ; "<AssertPlaceHolder>" ; } getBindingConfig ( ) { return this . bindingConfig ; } | org . junit . Assert . assertSame ( data , this . bundle . getBindingConfig ( ) ) |
shouldSelectAClassByItself ( ) { com . facebook . buck . test . selectors . TestDescription description = new com . facebook . buck . test . selectors . TestDescription ( "com.example.clown.Car" , null ) ; com . facebook . buck . test . selectors . TestSelector selector = com . facebook . buck . test . selectors . Patt... | org . junit . Assert . assertTrue ( selector . matches ( description ) ) |
expectGram ( ) { double [ ] probabilities = com . optimaize . langdetect . NgramFrequencyDataTest . allThreeGrams . getProbabilities ( "dam" ) ; assert probabilities != null ; "<AssertPlaceHolder>" ; } getLanguageList ( ) { return langlist ; } | org . junit . Assert . assertTrue ( ( ( ( probabilities . length ) >= 5 ) && ( ( probabilities . length ) <= ( com . optimaize . langdetect . NgramFrequencyDataTest . allThreeGrams . getLanguageList ( ) . size ( ) ) ) ) ) |
iteratesStreamEventsFromStartToEndWithSmallBatchSize ( ) { final java . lang . String stream = generateStreamName ( ) ; eventstore . appendToStream ( stream , ExpectedVersion . NO_STREAM , newTestEvents ( 10 ) ) . join ( ) ; java . util . Iterator < com . github . msemys . esjc . ResolvedEvent > iterator = eventstore .... | org . junit . Assert . assertThat ( iterator , hasSize ( 10 ) ) |
testURI ( ) { java . net . URI baseURI = java . net . URI . create ( "https://go.urbanairship.com" ) ; java . net . URI expectedUri = java . net . URI . create ( ( "https://go.urbanairship.com" + ( com . urbanairship . api . staticlists . StaticListDeleteRequestTest . STATIC_LIST_DELETE_PATH ) ) ) ; "<AssertPlaceHolder... | org . junit . Assert . assertEquals ( request . getUri ( baseURI ) , expectedUri ) |
testGetAllKnownProductIds ( ) { this . setupDBForProductIdTests ( ) ; java . util . Set < java . lang . String > expected = new java . util . HashSet ( ) ; expected . add ( "dpp-a-1" 5 ) ; expected . add ( "p2" ) ; expected . add ( "dp1" ) ; expected . add ( "dp2" ) ; expected . add ( "pp-a-0" ) ; expected . add ( "dpp... | org . junit . Assert . assertEquals ( expected , result ) |
default_filter_does_not_allow_seeded_requests ( ) { com . flextrade . jfixture . utility . RequestFilter filter = com . flextrade . jfixture . utility . RequestFilter . onlyDefault ( ) ; boolean allow = filter . allow ( new com . flextrade . jfixture . requests . SeededRequest ( null , null ) ) ; "<AssertPlaceHolder>" ... | org . junit . Assert . assertFalse ( allow ) |
expected_collection_and_database_collection_with_same_content_should_be_equals ( ) { addCollectionWithData ( getMongoDB ( ) , "col1" , "name" , "Alex" ) ; boolean isEquals = com . lordofthejars . nosqlunit . mongodb . integration . WhenExpectedDataShouldBeCompared . mongoOperation . databaseIs ( new java . io . ByteArr... | org . junit . Assert . assertThat ( isEquals , org . hamcrest . CoreMatchers . is ( true ) ) |
whenOneCapIsLessThanAnother_itShouldReturnCorrectBoolean_v3 ( ) { com . graphhopper . jsprit . core . problem . Capacity cap1 = Capacity . Builder . newInstance ( ) . addDimension ( 0 , 2 ) . addDimension ( 1 , 3 ) . addDimension ( 2 , 4 ) . build ( ) ; com . graphhopper . jsprit . core . problem . Capacity cap2 = Capa... | org . junit . Assert . assertTrue ( cap1 . isLessOrEqual ( cap2 ) ) |
testHashcode ( ) { "<AssertPlaceHolder>" ; } generateFieldsSet ( ) { java . util . Set < io . cdap . cdap . spi . data . table . field . Field < ? > > fields = new java . util . HashSet ( ) ; fields . add ( io . cdap . cdap . spi . data . table . field . Fields . bytesField ( "bytes" , io . cdap . cdap . api . common .... | org . junit . Assert . assertEquals ( generateFieldsSet ( ) , generateFieldsSet ( ) ) |
shouldNotValidateInstallmentScheduleForValidTotalAmount ( ) { org . mifos . accounts . loan . util . helpers . RepaymentScheduleInstallment installment = installmentBuilder . withInstallment ( 3 ) . withDueDate ( "30-Nov-2010" ) . withPrincipal ( new org . mifos . framework . util . helpers . Money ( rupeeCurrency , "4... | org . junit . Assert . assertThat ( errorEntries . isEmpty ( ) , org . hamcrest . core . Is . is ( true ) ) |
testPlain ( ) { org . robolectric . Robolectric . getFakeHttpLayer ( ) . interceptHttpRequests ( false ) ; java . lang . String subpath = "/raw" ; java . lang . String body = "SAO<sp>Nerve<sp>Gear" ; stubFor ( get ( urlEqualTo ( subpath ) ) . willReturn ( aResponse ( ) . withBody ( body ) ) ) ; java . lang . String res... | org . junit . Assert . assertEquals ( body , responseContent ) |
shouldEchoTextFrameWithPayloadLength65535 ( ) { org . kaazing . netx . URLConnectionHelper helper = org . kaazing . netx . URLConnectionHelper . newInstance ( ) ; java . net . URI location = java . net . URI . create ( "ws://localhost:8080/path" ) ; org . kaazing . netx . ws . WsURLConnection connection = ( ( org . kaa... | org . junit . Assert . assertEquals ( writeString , readString ) |
testIsPurposeFor_g1 ( ) { java . util . HashMap < java . lang . String , java . lang . Object > tokenVals = new java . util . HashMap ( ) ; tokenVals . put ( SamlConstants . TARGET_API_LEVEL , NhincConstants . GATEWAY_API_LEVEL . LEVEL_g1 ) ; tokenVals . put ( NhincConstants . WS_SOAP_TARGET_HOME_COMMUNITY_ID , "1.1" )... | org . junit . Assert . assertTrue ( ( ! ( decider . isPurposeFor ( properties ) ) ) ) |
testOffsettedFileChannel ( ) { java . lang . String fileName = "target/var/neostore.nodestore.db" ; org . neo4j . kernel . impl . AbstractNeo4jTestCase . deleteFileOrDirectory ( fileName ) ; org . neo4j . kernel . impl . nioneo . store . FileSystemAbstraction offsettedFileSystem = new org . neo4j . kernel . impl . core... | org . junit . Assert . assertEquals ( i , readSomethingLikeNodeRecord ( channel , idGenerator . nextId ( ) ) ) |
testEquals3 ( ) { org . jfree . data . time . TimeSeries s1 = new org . jfree . data . time . TimeSeries ( "Series" , org . jfree . data . time . Day . class ) ; org . jfree . data . time . TimeSeries s2 = new org . jfree . data . time . TimeSeries ( "Series" , org . jfree . data . time . Month . class ) ; "<AssertPlac... | org . junit . Assert . assertFalse ( s1 . equals ( s2 ) ) |
shouldReturnSameList ( ) { java . util . Set < java . lang . Integer > set = new java . util . HashSet ( java . util . Arrays . asList ( 123 , 456 , 789 , 12 , 3 , 45 , 66 , 78 ) ) ; java . lang . Class < ? > rawType = java . util . Set . class ; java . lang . Object result = ch . jalu . injector . utils . ReflectionUt... | org . junit . Assert . assertThat ( ( result == set ) , org . hamcrest . Matchers . equalTo ( true ) ) |
testSetICode_String ( ) { org . openscience . cdk . interfaces . IPDBMonomer monomer = ( ( org . openscience . cdk . interfaces . IPDBMonomer ) ( newChemObject ( ) ) ) ; monomer . setICode ( null ) ; "<AssertPlaceHolder>" ; } getICode ( ) { return iCode ; } | org . junit . Assert . assertNull ( monomer . getICode ( ) ) |
testIsUserWritable ( ) { "<AssertPlaceHolder>" ; } isWriteable ( java . lang . Class , java . lang . reflect . Type , java . lang . annotation . Annotation [ ] , javax . ws . rs . core . MediaType ) { if ( ! ( java . util . List . class . isAssignableFrom ( type ) ) ) { return false ; } if ( genericType instanceof java... | org . junit . Assert . assertTrue ( writer . isWriteable ( svanimpe . reminders . domain . User . class , null , null , null ) ) |
testFlowWithUnreachableSteps ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/unreachable_steps.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSource . fromFil... | org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) ) |
testCreateGroupFromIdPrincipalAndPath ( ) { java . security . Principal principal = new org . apache . jackrabbit . oak . spi . security . principal . PrincipalImpl ( "g" ) ; autosaveMgr . createGroup ( "g" , principal , "rel/path" ) ; "<AssertPlaceHolder>" ; verify ( mgrDlg , times ( 1 ) ) . createGroup ( "g" , princi... | org . junit . Assert . assertFalse ( root . hasPendingChanges ( ) ) |
onSave_shouldReturnTrueIfDateCreatedWasNull ( ) { org . openmrs . api . db . hibernate . AuditableInterceptor interceptor = new org . openmrs . api . db . hibernate . AuditableInterceptor ( ) ; org . openmrs . User u = new org . openmrs . User ( ) ; java . lang . String [ ] propertyNames = new java . lang . String [ ] ... | org . junit . Assert . assertTrue ( result ) |
testEnumValueOf ( ) { try { org . odftoolkit . simple . TextDocument tdoc = org . odftoolkit . simple . TextDocument . loadDocument ( org . odftoolkit . simple . utils . ResourceUtilities . getAbsolutePath ( "headerFooterHidden.odt" ) ) ; java . lang . String title = "title_name" ; java . lang . String [ ] labels = new... | org . junit . Assert . assertEquals ( chartType , ChartType . AREA ) |
testGetNextDpdkPortExistingDpdkPorts ( ) { org . mockito . Mockito . when ( com . cloud . utils . script . Script . runSimpleBashScript ( org . mockito . Matchers . anyString ( ) ) ) . thenReturn ( ( ( OvsVifDriver . DPDK_PORT_PREFIX ) + ( java . lang . String . valueOf ( com . cloud . hypervisor . kvm . resource . Ovs... | org . junit . Assert . assertEquals ( expectedPortName , driver . getNextDpdkPort ( ) ) |
testHasConditionAndBackwards ( ) { ca . uhn . fhir . jpa . dao . r4 . Patient patient = new ca . uhn . fhir . jpa . dao . r4 . Patient ( ) ; java . lang . String patientId = myPatientDao . create ( patient ) . getId ( ) . toUnqualifiedVersionless ( ) . getValue ( ) ; ca . uhn . fhir . jpa . dao . r4 . Condition conditi... | org . junit . Assert . assertEquals ( 0 , ids . size ( ) ) |
testFromCommonsLang ( ) { final fr . inria . testrunner . ClassWithVisibility style = new fr . inria . testrunner . ClassWithVisibility ( ) ; style . setSummaryObjectStartText ( null ) ; "<AssertPlaceHolder>" ; } getSummaryObjectStartText ( ) { return summaryObjectStartText ; } | org . junit . Assert . assertEquals ( "" , style . getSummaryObjectStartText ( ) ) |
testExtractDayDate ( ) { java . lang . String sqlText = ( "select<sp>d,<sp>EXTRACT(DAY<sp>FROM<sp>d)<sp>as<sp>\"DAY\"<sp>from<sp>" + ( com . splicemachine . derby . utils . SpliceDateFunctionsIT . tableWatcherI ) ) + "<sp>order<sp>by<sp>d" ; try ( com . splicemachine . derby . utils . ResultSet rs = methodWatcher . exe... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
testOpen ( ) { org . osgi . framework . BundleContext context = mock ( org . osgi . framework . BundleContext . class ) ; when ( context . getProperty ( org . osgi . framework . Constants . FRAMEWORK_UUID ) ) . thenReturn ( "some-uuid" ) ; org . apache . aries . jmx . Logger logger = mock ( org . apache . aries . jmx .... | org . junit . Assert . assertNotNull ( handler . getMbean ( ) ) |
testNietLeverenObvAfnemerindicatiefilter ( ) { final nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst persoonA = nl . bzk . brp . domain . leveringmodel . helper . TestBuilders . maakPersoonMetHandelingen ( 1 ) ; final nl . bzk . brp . domain . algemeen . Autorisatiebundel autorisatiebundel = maakAutor... | org . junit . Assert . assertFalse ( set . contains ( persoonA ) ) |
flipTestBigA ( ) { final int numCases = 1000 ; final java . util . BitSet bs = new java . util . BitSet ( ) ; final java . util . Random r = new java . util . Random ( 3333 ) ; int checkTime = 2 ; org . roaringbitmap . RoaringBitmap rb1 = new org . roaringbitmap . RoaringBitmap ( ) ; org . roaringbitmap . RoaringBitmap... | org . junit . Assert . assertTrue ( status ) |
testGetAllGroups ( ) { java . util . List < com . thinkbiganalytics . datalake . authorization . model . HadoopAuthorizationGroup > groups = rangerAuthorizationService . getAllGroups ( ) ; "<AssertPlaceHolder>" ; } getAllGroups ( ) { java . util . List < com . thinkbiganalytics . datalake . authorization . model . Hado... | org . junit . Assert . assertNotNull ( groups ) |
testCreate ( ) { org . oscarehr . common . model . ConsultResponseDoc entity = new org . oscarehr . common . model . ConsultResponseDoc ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return t... | org . junit . Assert . assertNotNull ( entity . getId ( ) ) |
testBasics ( ) { java . io . Reader r = new java . io . StringReader ( "1781<sp>\"hond,<sp>a.u.b.:<sp>bél(len);<sp>\t<sp>[pre]cursor<sp>\t\nzo\'n<sp>\'Hij<sp>zij\'<sp>ex-man<sp>-" ) ; try ( nl . inl . blacklab . analysis . BLDutchAnalyzer analyzer = new nl . inl . blacklab . analysis . BLDutchAnalyzer ( ) ) { try ( org... | org . junit . Assert . assertFalse ( ts . incrementToken ( ) ) |
testGetMean ( ) { final double [ ] mu = new double [ ] { - 1.5 , 2 } ; final double [ ] [ ] sigma = new double [ ] [ ] { new double [ ] { 2 , - 1.1 } , new double [ ] { - 1.1 , 2 } } ; final org . apache . commons . math4 . distribution . MultivariateNormalDistribution d = new org . apache . commons . math4 . distribut... | org . junit . Assert . assertEquals ( mu [ i ] , m [ i ] , 0 ) |
testGetAllNonPrivateMethods ( ) { java . util . List < java . lang . reflect . Method > nonPrivateMethods = org . apache . webbeans . util . ClassUtil . getNonPrivateMethods ( org . apache . webbeans . test . util . SpecificClass . class , false ) ; nonPrivateMethods . removeAll ( java . util . Arrays . asList ( java .... | org . junit . Assert . assertEquals ( 1 , nonPrivateMethods . size ( ) ) |
getFieldTest ( ) { java . lang . reflect . Field privateField = cn . hutool . core . util . ReflectUtil . getField ( cn . hutool . core . util . ClassUtilTest . TestSubClass . class , "privateField" ) ; "<AssertPlaceHolder>" ; } getField ( java . lang . Class , java . lang . String ) { final java . lang . reflect . Fie... | org . junit . Assert . assertNotNull ( privateField ) |
testWriteByteArrayOffsetOutOfBounds ( ) { java . io . OutputStream os = makeObject ( ) ; try { os . write ( new byte [ 5 ] , 5 , 1 ) ; org . junit . Assert . fail ( "Should<sp>not<sp>accept<sp>offset<sp>out<sp>of<sp>bounds" ) ; } catch ( java . io . IOException e ) { org . junit . Assert . fail ( ( "Should<sp>not<sp>th... | org . junit . Assert . assertNotNull ( e ) |
testCreateCase ( ) { java . util . Random _rand = new java . util . Random ( ) ; java . util . List < java . lang . Long > _tempHitList = new java . util . ArrayList ( ) ; _tempHitList . add ( new java . lang . Long ( 1L ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
testInvokePostConstruct ( ) { com . googlecode . mycontainer . jsfprovider . MyContainerInjectionProviderTest . ManagedBean mb = new com . googlecode . mycontainer . jsfprovider . MyContainerInjectionProviderTest . ManagedBean ( ) ; provider . invokePostConstruct ( mb ) ; "<AssertPlaceHolder>" ; } invokePostConstruct (... | org . junit . Assert . assertTrue ( postConstruct ) |
read_emptyLine ( ) { byte [ ] emptyCsv = bytes ( "\n\n" ) ; reader = new org . oscm . identityservice . bean . BulkUserImportReader ( emptyCsv ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return new java . util . Iterator < org . oscm . identityservice . bean . BulkUserImportReader . Row > ( ) { java . util . Iterator ... | org . junit . Assert . assertFalse ( reader . iterator ( ) . hasNext ( ) ) |
testNoError ( ) { boolean result = checkNoError ( "Social_Communities_Get_My_Communities" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; } | org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result ) |
robustnessMap ( ) { boolean exceptionCaught = false ; try { new greycat . internal . task . CoreTask ( ) . pipe ( null ) . execute ( _graph , null ) ; } catch ( java . lang . RuntimeException e ) { exceptionCaught = true ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( "Unexpected<sp>exception<sp... | org . junit . Assert . assertEquals ( true , exceptionCaught ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.