input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
methodInvoked2 ( ) { org . teavm . classlib . java . lang . reflect . MethodTest . Foo foo = new org . teavm . classlib . java . lang . reflect . MethodTest . Foo ( ) ; foo . bar ( "42" ) ; java . lang . reflect . Method method = foo . getClass ( ) . getDeclaredMethod ( "baz" ) ; "<AssertPlaceHolder>" ; } invoke ( int ... | org . junit . Assert . assertEquals ( "42" , method . invoke ( foo ) ) |
testDeleteNull ( ) { try { org . apache . commons . io . FileDeleteStrategy . NORMAL . delete ( null ) ; org . junit . Assert . fail ( ) ; } catch ( final java . lang . NullPointerException ex ) { } "<AssertPlaceHolder>" ; } deleteQuietly ( java . io . File ) { if ( ( fileToDelete == null ) || ( ( fileToDelete . exists... | org . junit . Assert . assertTrue ( org . apache . commons . io . FileDeleteStrategy . NORMAL . deleteQuietly ( null ) ) |
testGetBuilderIdempotent ( ) { com . sap . core . odata . processor . api . jpa . access . JPAEdmBuilder builder1 = com . sap . core . odata . processor . core . jpa . model . JPAEdmReferentialConstraintTest . objJPAEdmReferentialConstraint . getBuilder ( ) ; com . sap . core . odata . processor . api . jpa . access . ... | org . junit . Assert . assertEquals ( builder1 . hashCode ( ) , builder2 . hashCode ( ) ) |
testValidate ( ) { com . github . aureliano . evtbridge . annotation . model . AnnotationModel configuration = new com . github . aureliano . evtbridge . annotation . model . AnnotationModel ( ) . withNotOk ( false ) ; java . lang . reflect . Method method = configuration . getClass ( ) . getMethod ( "isNotOk" , new ja... | org . junit . Assert . assertTrue ( res . isEmpty ( ) ) |
nonEmptyIsNotSerializable ( ) { when ( dynamicFilterData . isAttributeExcluded ( java . util . Arrays . asList ( "CONTEXT_NAME_1" , "WRITER_NAME" ) ) ) . thenReturn ( true ) ; org . jboss . resteasy . spi . ResteasyProviderFactory . pushContext ( org . candlepin . common . jackson . DynamicFilterData . class , dynamicF... | org . junit . Assert . assertFalse ( propertyFilter . isSerializable ( null , jsonGenerator , null , writer ) ) |
testGetRequiredConfigurationValue ( ) { java . util . Map < java . lang . String , java . lang . Object > overrideMap = new java . util . HashMap ( ) ; overrideMap . put ( ConfigurationValue . ACTIVITI_JOB_DEFINITION_ID_TEMPLATE . getKey ( ) , org . finra . herd . dao . helper . STRING_VALUE ) ; modifyPropertySourceInE... | org . junit . Assert . assertEquals ( org . finra . herd . dao . helper . STRING_VALUE , resultValue ) |
testBuilderDefaultExecutor ( ) { final eu . toolchain . concurrent . CoreAsync async = builder ( ) . executor ( executor ) . build ( ) ; "<AssertPlaceHolder>" ; } executor ( ) { if ( ( executor ) == null ) { throw new java . lang . IllegalStateException ( "no<sp>default<sp>executor<sp>configured" ) ; } return executor ... | org . junit . Assert . assertEquals ( executor , async . executor ( ) ) |
updateUserAccount_Lock_ShouldLockUserAccount ( ) { com . jiwhiz . domain . account . UserAccount user = getTestLoggedInUser ( ) ; user . setAccountLocked ( false ) ; when ( userAccountRepositoryMock . findByUserId ( com . jiwhiz . rest . admin . USER_ID ) ) . thenReturn ( user ) ; mockMvc . perform ( request ( HttpMeth... | org . junit . Assert . assertTrue ( user . isAccountLocked ( ) ) |
testSingleElementMinusDisjointSet ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 15 , 15 ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 1 , 5 ) ; s2 . add ( 10 , 20 ) ; java . lang . String... | org . junit . Assert . assertEquals ( expecting , result ) |
testSave ( ) { java . lang . String source = "(NP<sp>(DT<sp>an)<sp>(-LRB-<sp>-LRB-)<sp>(VBG<sp>offending)<sp>(-RRB-<sp>-RRB-)<sp>(NN<sp>country)<sp>)" ; edu . nyu . jet . format . PTBReader reader = new edu . nyu . jet . format . PTBReader ( ) ; edu . nyu . jet . format . Treebank treebank = reader . load ( new java . ... | org . junit . Assert . assertEquals ( normalize ( source ) , normalize ( out . toString ( ) ) ) |
testLaboratoryRowGets ( ) { int code = 0 ; try { code = _setupTestLaboratoryRow ( false ) ; _checkLaboratoryRowIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkLaboratoryRowIntoDb ( int ) { org . isf . lab . model . LaboratoryRow foundLaborat... | org . junit . Assert . assertEquals ( true , false ) |
testNegativeComponent2 ( ) { org . hipparchus . linear . RealMatrix m = org . hipparchus . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1.23 , - 1.434343434343 , 1.63 } , new double [ ] { 2.46 , 2.46 , 2.66 } } ) ; java . lang . String expected = ( ( ( ( ( ( ( ( ( ( ( "{{1" + ( getDec... | org . junit . Assert . assertEquals ( expected , actual ) |
returnsFalseAfterXWikiExceptionWhileRetrievingDocument ( ) { org . mockito . Mockito . doThrow ( new com . xpn . xwiki . XWikiException ( ) ) . when ( this . xwiki ) . getDocument ( this . patientDocumentReference , this . context ) ; org . phenotips . recordLocking . PatientRecordLockManager mockedLockManager = this .... | org . junit . Assert . assertFalse ( mockedLockManager . lockPatientRecord ( this . patient ) ) |
initStandardDesignDocument_should_create_designDoc_if_none_exists ( ) { doReturn ( Boolean . FALSE ) . when ( db ) . contains ( "_design/TestDoc" ) ; doNothing ( ) . when ( db ) . update ( any ( org . ektorp . support . DesignDocument . class ) ) ; org . ektorp . support . CouchDbRepositorySupportTest . TestRepo repo =... | org . junit . Assert . assertEquals ( "_design/TestDoc" , dd . getId ( ) ) |
commit ( ) { persistManager . save ( ) ; "<AssertPlaceHolder>" ; } exists ( int ) { final java . sql . Connection connection = java . sql . DriverManager . getConnection ( org . apache . openejb . bonecp . BoneCPPooledDataSourceFromPoolTest . URL , org . apache . openejb . bonecp . BoneCPPooledDataSourceFromPoolTest . ... | org . junit . Assert . assertTrue ( org . apache . openejb . bonecp . BoneCPPooledDataSourceFromPoolTest . exists ( 1 ) ) |
testValidateUrl_IP ( ) { boolean result = org . oscm . validator . ADMValidator . isUrl ( "http://127.0.0.1:8080" ) ; "<AssertPlaceHolder>" ; } isUrl ( java . lang . String ) { return org . oscm . validator . ADMValidator . URL_VALIDATOR . isValid ( value ) ; } | org . junit . Assert . assertTrue ( result ) |
testWildcards ( ) { java . io . File tmp = tempDir . toFile ( ) ; java . io . File child1 = new java . io . File ( ( ( ( tempDir ) + ( org . aesh . utils . Config . getPathSeparator ( ) ) ) + "child1" ) ) ; java . io . File child2 = new java . io . File ( ( ( ( tempDir ) + ( org . aesh . utils . Config . getPathSeparat... | org . junit . Assert . assertEquals ( 1 , files . size ( ) ) |
execute_metacharacter ( ) { java . io . File file = folder . newFile ( "$\"\'`\\<sp>file" ) ; org . junit . Assume . assumeTrue ( file . delete ( ) ) ; java . util . Map < java . lang . String , java . lang . String > config = new java . util . HashMap ( ) ; config . put ( JschProcessExecutor . KEY_USER , java . lang .... | org . junit . Assert . assertThat ( file . exists ( ) , is ( true ) ) |
testMatchHdfsPolicy_NoResourceName ( ) { boolean bnlChk = rangerBizUtil . matchHbasePolicy ( null , null , null , id , AppConstants . XA_PERM_TYPE_UNKNOWN ) ; "<AssertPlaceHolder>" ; } matchHbasePolicy ( java . lang . String , java . util . List , org . apache . ranger . view . VXResponse , java . lang . Long , int ) {... | org . junit . Assert . assertFalse ( bnlChk ) |
findMainClass_jar_null ( ) { java . lang . String content = "Manifest-Version:<sp>1.0\n" ; java . io . InputStream inputStream = new java . io . ByteArrayInputStream ( content . getBytes ( ) ) ; java . net . URL url = org . powermock . api . mockito . PowerMockito . mock ( java . net . URL . class ) ; java . lang . Str... | org . junit . Assert . assertNull ( org . apache . servicecomb . foundation . common . utils . JvmUtils . findMainClass ( ) ) |
scheduleAtFixedRateFutureCancelRemovalTest ( ) { java . util . concurrent . ScheduledExecutorService scheduler = makeScheduler ( 1 ) ; java . util . concurrent . ScheduledFuture < ? > sf = scheduler . scheduleAtFixedRate ( org . threadly . concurrent . DoNothingRunnable . instance ( ) , 1000 , 1000 , TimeUnit . MILLISE... | org . junit . Assert . assertEquals ( 0 , scheduler . shutdownNow ( ) . size ( ) ) |
testFetchByPrimaryKeyExisting ( ) { com . liferay . roster . model . Roster newRoster = addRoster ( ) ; com . liferay . roster . model . Roster existingRoster = _persistence . fetchByPrimaryKey ( newRoster . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _rosterMember . getPrimaryKey ( ) ; } | org . junit . Assert . assertEquals ( existingRoster , newRoster ) |
deveObterJustificativaComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFInfoCancelamento infoCancelamento = new com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFInfoCancelamento ( ) ; final java . lang . String justificativa = "oHhcR... | org . junit . Assert . assertEquals ( justificativa , infoCancelamento . getJustificativa ( ) ) |
testConstructorDoesNotPruneCapabilitiesWithUnknownPlatform ( ) { org . openqa . grid . internal . utils . configuration . GridNodeConfiguration config = new org . openqa . grid . internal . utils . configuration . GridNodeConfiguration ( ) ; org . openqa . selenium . MutableCapabilities capabilities = new org . openqa ... | org . junit . Assert . assertEquals ( req . getConfiguration ( ) . capabilities . size ( ) , 1 ) |
isNotEmpty ( ) { mandatorySubject . setValue ( 1234 ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; } | org . junit . Assert . assertEquals ( false , mandatorySubject . isEmpty ( ) ) |
testDeleteRepository ( ) { int index = 1 ; when ( repositoriesMeta . findRepository ( org . pentaho . di . ui . repo . controller . RepositoryConnectControllerTest . REPOSITORY_NAME ) ) . thenReturn ( repositoryMeta ) ; when ( repositoriesMeta . indexOfRepository ( repositoryMeta ) ) . thenReturn ( index ) ; when ( rep... | org . junit . Assert . assertEquals ( true , result ) |
testOnConnectionChangedUpdatePre_Null ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) ) |
testInstantiation ( ) { int errors = 0 ; for ( final org . scijava . plugin . PluginInfo < net . imagej . ops . Op > info : ops . getPlugins ( ) ) { try { info . createInstance ( ) ; } catch ( org . scijava . InstantiableException e ) { errors ++ ; System . err . println ( ( "Could<sp>not<sp>instantiate<sp>" + ( info .... | org . junit . Assert . assertEquals ( 0 , errors ) |
testConnected ( ) { org . jboss . as . cli . ConnectionInfo connInfo = ctx . getConnectionInfo ( ) ; "<AssertPlaceHolder>" ; } getUsername ( ) { return username ; } | org . junit . Assert . assertNotNull ( connInfo . getUsername ( ) ) |
testLoad ( ) { instance . addLayer ( org . mockito . Mockito . mock ( org . neuroph . core . Layer . class ) ) ; instance . save ( "test.nnet" ) ; org . neuroph . core . NeuralNetwork < org . neuroph . core . learning . LearningRule > nn1 ; try { nn1 = org . neuroph . core . NeuralNetwork . load ( new java . io . FileI... | org . junit . Assert . assertTrue ( ( ( instance . getLayers ( ) . size ( ) ) == ( nn1 . getLayers ( ) . size ( ) ) ) ) |
testFormatLogEventStringBuilderIso8601TimezoneOffsetHHCMM ( ) { final org . apache . logging . log4j . core . LogEvent event = new org . apache . logging . log4j . core . pattern . DatePatternConverterTest . MyLogEvent ( ) ; final java . lang . String [ ] optionsWithTimezone = new java . lang . String [ ] { org . apach... | org . junit . Assert . assertEquals ( expected , sb . toString ( ) ) |
testStrictmode ( ) { java . lang . String className = "testStrictmode" ; com . orientechnologies . orient . core . metadata . schema . OSchema schema = com . orientechnologies . orient . core . sql . executor . OAlterClassStatementExecutionTest . db . getMetadata ( ) . getSchema ( ) ; schema . createClass ( className )... | org . junit . Assert . assertTrue ( clazz . isStrictMode ( ) ) |
shouldConsiderAsNormalizedAnAbsolutePathWithParentSegmentAtFront ( ) { parent = path ( "/../a/b" ) ; path = new org . modeshape . jcr . value . basic . ChildPath ( parent , segment ( "c" ) ) ; "<AssertPlaceHolder>" ; } isNormalized ( ) { return true ; } | org . junit . Assert . assertThat ( path . isNormalized ( ) , org . hamcrest . core . Is . is ( false ) ) |
testNoActionWhenConfirmDeniedOnRemoveLayerDefinition ( ) { select ( au . gov . ga . worldwind . animator . panels . layerpalette . LayerPalettePanelTest . IDENTIFIER_NOT_IN_ANIMATION ) ; denyRemovalConfirmation ( ) ; fireRemoveLayerDefinition ( ) ; "<AssertPlaceHolder>" ; } getListModel ( ) { return ( ( au . gov . ga .... | org . junit . Assert . assertEquals ( 4 , getListModel ( ) . size ( ) ) |
testTwoInputFiles ( ) { java . lang . String query = new com . spotify . beetest . TestCase ( ) . getDDLSetupQuery ( "src/main/resources/test/table-two-files.ddl" , "test" ) ; java . lang . String expected = "DROP<sp>TABLE<sp>IF<sp>EXISTS<sp>words;\n" + ( ( ( "CREATE<sp>TABLE<sp>words(word<sp>STRING,<sp>length<sp>INT)\... | org . junit . Assert . assertEquals ( query , expected ) |
testNegativeTermEquality ( ) { aima . core . logic . fol . domain . FOLDomain domain = new aima . core . logic . fol . domain . FOLDomain ( ) ; domain . addConstant ( "A" ) ; domain . addConstant ( "B" ) ; domain . addConstant ( "C" ) ; domain . addPredicate ( "P" ) ; domain . addFunction ( "F" ) ; aima . core . logic ... | org . junit . Assert . assertEquals ( 0 , paras . size ( ) ) |
testGetInstance_applicationContext_nullIfNotInstalled ( ) { org . eclipse . rap . rwt . internal . SingletonManager singletonManager = org . eclipse . rap . rwt . internal . SingletonManager . getInstance ( applicationContext ) ; "<AssertPlaceHolder>" ; } getInstance ( org . eclipse . rap . rwt . service . UISession ) ... | org . junit . Assert . assertNull ( singletonManager ) |
getAllOverwritableSupertypeFunctionsForResourceShouldNotBeNull ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity resource = createResourceWithType ( "resourceName" , 1 , createRootResourceType ( ) ) ; ch . puzzle . itc . mobiliar . business . function . control . List < ch . puzzle... | org . junit . Assert . assertNotNull ( resourceFunctions ) |
testSaveTFileCsvConfigCsvHandlerOfT ( ) { final java . io . File file = tempFolder . newFile ( "test.csv" ) ; com . orangesignal . csv . Csv . save ( com . orangesignal . csv . CsvTest . data , file , com . orangesignal . csv . CsvTest . cfg , new com . orangesignal . csv . handlers . StringArrayListHandler ( ) ) ; fin... | org . junit . Assert . assertThat ( list . size ( ) , org . hamcrest . core . Is . is ( 2 ) ) |
testSelectQuery ( ) { int aggBlockCount = 10 ; org . verdictdb . core . scrambling . UniformScrambler scrambler = new org . verdictdb . core . scrambling . UniformScrambler ( org . verdictdb . core . scrambling . UniformScramblerTest . originalSchema , org . verdictdb . core . scrambling . UniformScramblerTest . origin... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetDirectory ( ) { java . util . TreeMap < java . lang . String , java . lang . String > expectedValue = new java . util . TreeMap ( ) ; expectedValue . put ( "/dir1/test.doc" , "/dir1" ) ; expectedValue . put ( "/dir1/dir2/test.doc.xml" , "/dir1/dir2" ) ; for ( java . lang . String filename : expectedValue . keySe... | org . junit . Assert . assertEquals ( f1 , f2 ) |
validMaxPositiveInteger ( ) { long result = org . kaazing . gateway . util . Utils . parsePositiveInteger ( "bushells" , java . lang . Long . toString ( Long . MAX_VALUE ) , 0 ) ; "<AssertPlaceHolder>" ; } toString ( org . apache . mina . util . byteaccess . ByteArray ) { org . apache . mina . core . buffer . IoBuffer ... | org . junit . Assert . assertEquals ( Long . MAX_VALUE , result ) |
runReturnParameterTest ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "testAPKs/ReturnParameterTest.apk" , false , false , false ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( ( ( ( callgraphConstructionSeconds ) <= 0 ) && ( ( taintPropagationSeconds ) <= 0 ) ) && ( ( pathReco... | org . junit . Assert . assertTrue ( ( ( res == null ) || ( res . isEmpty ( ) ) ) ) |
testUnrecognizedCommand ( ) { int rc = run ( "unrecognizedcommand" ) ; verify ( console ) . error ( startsWith ( "Expected<sp>a<sp>command,<sp>got<sp>unrecognizedcommand" ) ) ; "<AssertPlaceHolder>" ; } run ( java . lang . String [ ] ) { try { jc . parse ( args ) ; } catch ( com . beust . jcommander . MissingCommandExc... | org . junit . Assert . assertEquals ( 1 , rc ) |
injectIntoWithOver100 ( ) { com . gs . collections . impl . math . Sum result = new com . gs . collections . impl . math . IntegerSum ( 0 ) ; java . lang . Integer parameter = 2 ; com . gs . collections . api . block . function . Function3 < com . gs . collections . impl . math . Sum , java . lang . Integer , java . la... | org . junit . Assert . assertEquals ( 0 , sumOfDoubledValues . getValue ( ) . intValue ( ) ) |
listAllAccessLevelsWithNoComponents ( ) { when ( this . componentManager . < org . phenotips . data . permissions . AccessLevel > getInstanceList ( org . phenotips . data . permissions . AccessLevel . class ) ) . thenReturn ( java . util . Collections . emptyList ( ) ) ; java . util . Collection < org . phenotips . dat... | org . junit . Assert . assertTrue ( returnedLevels . isEmpty ( ) ) |
testStar ( ) { com . gistlabs . mechanize . util . css_query . NodeSelector < com . gistlabs . mechanize . document . json . node . JsonNode > selector = build ( "{<sp>\"a\"<sp>:<sp>2,<sp>\"b\"<sp>:<sp>{<sp>\"x\"<sp>:<sp>\"y\"<sp>},<sp>\"results\"<sp>:<sp>[<sp>{<sp>\"a\"<sp>:<sp>1<sp>},<sp>{<sp>\"b\"<sp>:<sp>2<sp>}<sp>... | org . junit . Assert . assertEquals ( 8 , result . size ( ) ) |
construction_explicitCatalogAndSchema_shouldSucceed ( ) { if ( ( ( ( ( com . vaadin . v7 . data . util . sqlcontainer . SQLTestsConstants . db ) != ( com . vaadin . v7 . data . util . sqlcontainer . SQLTestsConstants . DB . POSTGRESQL ) ) || ( ( com . vaadin . v7 . data . util . sqlcontainer . SQLTestsConstants . creat... | org . junit . Assert . assertNotNull ( tq1 ) |
constructFromSeed ( ) { com . matthewmitchell . peercoinj . wallet . ECKey key1 = group . freshKey ( KeyChain . KeyPurpose . RECEIVE_FUNDS ) ; final com . matthewmitchell . peercoinj . wallet . DeterministicSeed seed = checkNotNull ( group . getActiveKeyChain ( ) . getSeed ( ) ) ; com . matthewmitchell . peercoinj . wa... | org . junit . Assert . assertEquals ( key1 , key2 ) |
testOffline ( ) { org . eclipse . ceylon . common . tool . ToolModel < org . eclipse . ceylon . tools . info . CeylonInfoTool > model = pluginLoader . loadToolModel ( "info" ) ; "<AssertPlaceHolder>" ; org . eclipse . ceylon . tools . info . CeylonInfoTool tool = pluginFactory . bindArguments ( model , getMainTool ( ) ... | org . junit . Assert . assertNotNull ( model ) |
shouldConvertMicrometersToPixels ( ) { "<AssertPlaceHolder>" ; } micrometersToPixels ( int ) { return micrometers / ( getMicrometersPerPixel ( ) ) ; } | org . junit . Assert . assertEquals ( 1 , metrics . micrometersToPixels ( 100 ) ) |
shouldUpdateHttpsProxy ( ) { verifyProxy ( Configuration . INSTANCE . getHttpsProxySettings ( ) , false , "host-https" , 9001 , "user-https" , "password-https" ) ; byte [ ] initFileContents = org . apache . commons . io . FileUtils . readFileToByteArray ( configSettingFile ) ; boolean activated = true ; java . lang . S... | org . junit . Assert . assertFalse ( java . util . Arrays . equals ( updatedFileContents , initFileContents ) ) |
testJsonToJava_array ( ) { org . eclipse . rap . json . JsonArray array = new org . eclipse . rap . json . JsonArray ( ) . add ( true ) . add ( JsonObject . NULL ) . add ( 5 ) . add ( "foo" ) ; java . lang . Object [ ] result = ( ( java . lang . Object [ ] ) ( org . eclipse . swt . internal . browser . browserkit . Bro... | org . junit . Assert . assertArrayEquals ( expected , result ) |
testLessThan ( ) { org . apache . tajo . datum . Inet4Datum ip1 = new org . apache . tajo . datum . Inet4Datum ( "192.168.100.1" ) ; org . apache . tajo . datum . Inet4Datum ip2 = new org . apache . tajo . datum . Inet4Datum ( "193.168.0.1" ) ; "<AssertPlaceHolder>" ; } compareTo ( org . apache . tajo . QueryUnitId ) {... | org . junit . Assert . assertEquals ( ip1 . compareTo ( ip2 ) , ( - 1 ) ) |
testReceiveTaskMessageCorrelationAll ( ) { org . camunda . bpm . model . bpmn . BpmnModelInstance model = org . camunda . bpm . model . bpmn . Bpmn . createExecutableProcess ( "Process_1" ) . startEvent ( ) . subProcess ( "SubProcess_1" ) . embeddedSubProcess ( ) . startEvent ( ) . receiveTask ( "SubProcess_1" 1 ) . me... | org . junit . Assert . assertEquals ( 1 , uncorrelatedExecutions . size ( ) ) |
testBookExistsWebClientBooleanObject ( ) { org . apache . cxf . jaxrs . client . WebClient wc = org . apache . cxf . jaxrs . client . WebClient . create ( ( ( "http://localhost:" + ( org . apache . cxf . systest . jaxrs . JAXRSClientServerBookTest . PORT ) ) + "/bookstore/books/check/123" ) ) ; wc . accept ( "text/plai... | org . junit . Assert . assertTrue ( wc . get ( org . apache . cxf . systest . jaxrs . Boolean . class ) ) |
getDefaultWallpaper ( ) { prepareSpaces ( "WA2" , "WA11" , "WA111" ) ; com . silverpeas . look . LookSilverpeasV5Helper lookHelper = aLookSilverpeasV5HelperToTest ( ) ; lookHelper . setSpaceId ( "WA111" ) ; java . lang . String wallpaper = lookHelper . getSpaceWallPaper ( ) ; "<AssertPlaceHolder>" ; } getSpaceWallPaper... | org . junit . Assert . assertNull ( wallpaper ) |
Values_Against_Empty ( ) { java . util . Map < java . lang . Object , java . lang . Object > diff = org . javersion . core . Diff . diff ( org . javersion . core . DiffTest . map ( ) , org . javersion . core . DiffTest . map ( 1 , 1 , 2 , 2 ) ) ; "<AssertPlaceHolder>" ; } map ( K , V , K , V ) { java . util . Map < K ,... | org . junit . Assert . assertThat ( diff , org . hamcrest . Matchers . equalTo ( org . javersion . core . DiffTest . map ( 1 , 1 , 2 , 2 ) ) ) |
testWithOverridenAliases ( ) { org . wikidata . wdtk . datamodel . implementation . MonolingualTextValue newAlias = new org . wikidata . wdtk . datamodel . implementation . MonolingualTextValueImpl ( "A<sp>new<sp>alias<sp>of<sp>Q42" , "en" ) ; org . wikidata . wdtk . datamodel . implementation . ItemDocument withAlias ... | org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( newAlias ) , withAlias . getAliases ( ) . get ( "en" ) ) |
testGetAssociationFromProxy ( ) { org . rioproject . associations . Association < org . rioproject . impl . associations . Dummy > association = org . rioproject . impl . associations . AssociationProxyUtil . getAssociation ( t . getDummy ( ) ) ; "<AssertPlaceHolder>" ; } getDummy ( ) { return dummy ; } | org . junit . Assert . assertNotNull ( association ) |
isZipkinTracingEnabled_WhenZipkinDataBuilderIsNotNull_ShouldReturnTrue ( ) { victim = new com . betfair . cougar . modules . zipkin . impl . ZipkinRequestUUIDImpl ( cougarUuid , zipkinDataBuilder ) ; "<AssertPlaceHolder>" ; } isZipkinTracingEnabled ( ) { return ( zipkinDataBuilder ) != null ; } | org . junit . Assert . assertTrue ( victim . isZipkinTracingEnabled ( ) ) |
testJsonXmlInspectionRequest ( ) { io . atlasmap . xml . v2 . XmlInspectionRequest request = generateInspectionRequest ( ) ; mapper . writerWithDefaultPrettyPrinter ( ) . writeValue ( new java . io . File ( ( ( ( ( ( ( "target" + ( java . io . File . separator ) ) + "junit" ) + ( java . io . File . separator ) ) + ( te... | org . junit . Assert . assertNotNull ( uRequest ) |
testEmpty ( ) { java . lang . String str = "" ; org . fastcatsearch . ir . io . CharVector term = new org . fastcatsearch . ir . io . CharVector ( str ) ; org . fastcatsearch . ir . io . CharVectorTokenizer tokenizer = new org . fastcatsearch . ir . io . CharVectorTokenizer ( term ) ; if ( tokenizer . hasNext ( ) ) { "... | org . junit . Assert . assertFalse ( true ) |
testInstanceChaining ( ) { nl . utwente . viskell . haskell . env . Environment env = new nl . utwente . viskell . haskell . env . HaskellCatalog ( ) . asEnvironment ( ) ; nl . utwente . viskell . haskell . expr . Expression e0 = new nl . utwente . viskell . haskell . expr . Apply ( env . useFun ( "id" ) , new nl . utw... | org . junit . Assert . assertEquals ( t0 . prettyPrint ( ) , "Int" ) |
testConnectToTableIndexHappy ( ) { org . sagebionetworks . repo . manager . table . TableIndexManager manager = indexFactory . connectToTableIndex ( tableId ) ; "<AssertPlaceHolder>" ; } connectToTableIndex ( java . lang . String ) { if ( tableId == null ) { throw new java . lang . IllegalArgumentException ( tableId ) ... | org . junit . Assert . assertNotNull ( manager ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . lock . model . Lock . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( com . ... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testRpush ( ) { byte [ ] value1 = "value1" . getBytes ( ) ; byte [ ] value2 = "value2" . getBytes ( ) ; byte [ ] key = "key1" . getBytes ( ) ; jedisCluster . del ( key ) ; jedisCluster . rpush ( key , value1 ) ; jedisCluster . rpush ( key , value2 ) ; long num = 2L ; "<AssertPlaceHolder>" ; } llen ( java . lang . Strin... | org . junit . Assert . assertEquals ( 2 , ( ( long ) ( jedisCluster . llen ( key ) ) ) ) |
testFilteringSpecifiedColumnNamesUsesCaseFromArgumentNotDatabase ( ) { org . apache . sqoop . SqoopOptions opts = new org . apache . sqoop . SqoopOptions ( ) ; java . lang . String [ ] cols = new java . lang . String [ ] { "bbb" , "ccc" } ; opts . setColumns ( cols ) ; org . apache . sqoop . manager . SqlManager sqlMan... | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "bbb" , "ccc" } , sqlManager . filterSpecifiedColumnNames ( allColumnsFromDbTable ) ) |
testRemove ( ) { com . liferay . portal . kernel . model . Portlet newPortlet = addPortlet ( ) ; _persistence . remove ( newPortlet ) ; com . liferay . portal . kernel . model . Portlet existingPortlet = _persistence . fetchByPrimaryKey ( newPortlet . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { ... | org . junit . Assert . assertNull ( existingPortlet ) |
insertLastEmpty ( ) { lijst = new nl . hr . cmi . infdev226a . GelinkteLijst ( ) ; lijst . insertLast ( 2 ) ; "<AssertPlaceHolder>" ; } getLast ( ) { return last . data ; } | org . junit . Assert . assertEquals ( 2 , lijst . getLast ( ) ) |
testNext ( ) { writeChange ( ) ; org . ektorp . impl . changes . DocumentChange c = feed . next ( ) ; "<AssertPlaceHolder>" ; } next ( ) { findNext ( ) ; hasNext = null ; return row ; } | org . junit . Assert . assertNotNull ( c ) |
shouldFailWebSocketConnectionWhenServerSendBinaryFrameWithRsv6 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ... | org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) ) |
testSetAndGetBit ( ) { org . junit . Assume . assumeTrue ( ( ( redisTemplate ) instanceof org . springframework . data . redis . core . StringRedisTemplate ) ) ; K key = keyFactory . instance ( ) ; int bitOffset = 65 ; valueOps . setBit ( key , bitOffset , true ) ; "<AssertPlaceHolder>" ; } getBit ( java . lang . Strin... | org . junit . Assert . assertEquals ( true , valueOps . getBit ( key , bitOffset ) ) |
testWorksWithDefaultValues ( ) { io . datakernel . config . Config root = io . datakernel . config . Config . create ( ) ; java . lang . Integer value = root . get ( io . datakernel . config . ConfigConverters . ofInteger ( ) , "not.existing.branch" , 8080 ) ; "<AssertPlaceHolder>" ; } ofInteger ( ) { return new io . d... | org . junit . Assert . assertEquals ( 8080 , ( ( int ) ( value ) ) ) |
testGetConnectionPassword_nullConnection ( ) { java . lang . String password = org . pentaho . platform . dataaccess . datasource . wizard . service . impl . utils . ConnectionServiceHelper . getConnectionPassword ( org . pentaho . platform . dataaccess . datasource . wizard . service . impl . utils . ConnectionService... | org . junit . Assert . assertEquals ( "password" , password ) |
testBucketInfoJson ( ) { org . apache . hadoop . ozone . web . response . BucketInfo bucketInfo = new org . apache . hadoop . ozone . web . response . BucketInfo ( "volumeName" , "bucketName" ) ; java . lang . String bucketInfoString = bucketInfo . toJsonString ( ) ; org . apache . hadoop . ozone . web . response . Buc... | org . junit . Assert . assertEquals ( bucketInfo , newBucketInfo ) |
testExpireDecrementsClaimsOnce ( ) { final org . apache . nifi . controller . repository . claim . ContentClaim contentClaim = contentRepo . create ( false ) ; final org . apache . nifi . controller . repository . FlowFileRecord flowFileRecord = new org . apache . nifi . controller . repository . StandardFlowFileRecord... | org . junit . Assert . assertEquals ( 1L , contentRepo . getClaimsRemoved ( ) ) |
addingANewPdcPositionWithoutAnyValues ( ) { com . sun . jersey . api . client . ClientResponse response = post ( aPdcPositionWithoutAnyValues ( ) , at ( aResourceURI ( ) ) ) ; int receivedStatus = response . getStatus ( ) ; int badRequest = Status . BAD_REQUEST . getStatusCode ( ) ; "<AssertPlaceHolder>" ; } is ( T ) {... | org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( badRequest ) ) |
missingDumpFile ( ) { org . wikidata . wdtk . dumpfiles . MwLocalDumpFile df = new org . wikidata . wdtk . dumpfiles . MwLocalDumpFile ( "/non-existing-dump-file.json.gz" ) ; "<AssertPlaceHolder>" ; } isAvailable ( ) { if ( ( isDone ) == null ) { isDone = fetchIsDone ( ) ; } return isDone ; } | org . junit . Assert . assertFalse ( df . isAvailable ( ) ) |
testFloodFill_FullImage ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 10 , 10 ) ; image . setColor ( 8 ) ; image . fill ( ) ; inra . ijpb . morphology . FloodFill . floodFill ( image , 3 , 3 , 12 , 4 ) ; for ( int y = 0 ; y < 10 ; y ++ ) { for ( int x = 0 ; x < 10 ; x ++ ) { "<AssertPla... | org . junit . Assert . assertEquals ( 12 , image . get ( x , y ) ) |
testDeleteEntity_failure ( ) { handler . addRequest ( false , "DELETE" , "/qcbin/rest/domains/domain/projects/project/defects/86" , 500 ) . responseBody ( "Failed" ) ; com . hp . alm . ali . idea . model . Entity defect = new com . hp . alm . ali . idea . model . Entity ( "defect" , 86 ) ; boolean deleted = entityServi... | org . junit . Assert . assertFalse ( deleted ) |
testLimit ( ) { int lim = 5 ; buffer . limit ( lim ) ; "<AssertPlaceHolder>" ; } limit ( ) { return limit ; } | org . junit . Assert . assertEquals ( lim , buffer . limit ( ) ) |
testGetServicesForContainer_Null ( ) { java . lang . String container = null ; com . google . common . collect . Multimap < java . lang . String , java . lang . String > services = svcLookup . getServicesFor ( container , host ) ; "<AssertPlaceHolder>" ; } size ( ) { java . util . List < java . lang . Object [ ] > s = ... | org . junit . Assert . assertEquals ( 0 , services . size ( ) ) |
testResultMatchesFilterMatch ( ) { java . util . Map < java . lang . String , java . lang . Object > result = com . google . common . collect . Maps . newHashMap ( ) ; result . put ( "account_id" , 2 ) ; result . put ( "is_filtered" , false ) ; java . util . Map < java . lang . String , java . lang . Object > clientFil... | org . junit . Assert . assertTrue ( matches ) |
testGetAllUserCreatedFlowSheets ( ) { boolean isArchived = true ; org . oscarehr . common . model . FlowSheetUserCreated flowSheetUserCreated1 = new org . oscarehr . common . model . FlowSheetUserCreated ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( flowSheetUserCre... | org . junit . Assert . assertTrue ( true ) |
notEqualsNull ( ) { final com . lightboxtechnologies . nsrl . ProdData pd = new com . lightboxtechnologies . nsrl . ProdData ( com . lightboxtechnologies . nsrl . ProdDataTest . code , com . lightboxtechnologies . nsrl . ProdDataTest . name , com . lightboxtechnologies . nsrl . ProdDataTest . version , com . lightboxte... | org . junit . Assert . assertFalse ( pd . equals ( null ) ) |
testEvaluate7 ( ) { com . huawei . streaming . expression . RelationExpression relationExpression = new com . huawei . streaming . expression . RelationExpression ( ExpressionOperator . EQUAL , new com . huawei . streaming . expression . ConstExpression ( 1 ) , new com . huawei . streaming . expression . ConstExpressio... | org . junit . Assert . assertTrue ( ( ( java . lang . Boolean ) ( actualResult ) ) ) |
testSerialization ( ) { org . jfree . chart . labels . StandardCategoryToolTipGenerator g1 = new org . jfree . chart . labels . StandardCategoryToolTipGenerator ( "{2}" , java . text . DateFormat . getInstance ( ) ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . Obj... | org . junit . Assert . assertEquals ( g1 , g2 ) |
testDelegatesLayoutData ( ) { com . eclipsesource . tabris . widgets . ScrollingComposite composite = new com . eclipsesource . tabris . widgets . ScrollingComposite ( shell , org . eclipse . swt . SWT . H_SCROLL ) ; org . eclipse . swt . custom . ScrolledComposite scrolledComposite = ( ( org . eclipse . swt . custom .... | org . junit . Assert . assertSame ( data , scrolledComposite . getLayoutData ( ) ) |
testCleanUpGerritCausesThreeInstances ( ) { hudson . model . AbstractBuild build = mockBuild ( "projectX" , 2 ) ; com . sonymobile . tools . gerrit . gerritevents . dto . events . PatchsetCreated event = com . sonyericsson . hudson . plugins . gerrit . trigger . mock . Setup . createPatchsetCreated ( ) ; com . sonyeric... | org . junit . Assert . assertEquals ( 1 , causes . size ( ) ) |
testCompute ( ) { org . apache . druid . query . aggregation . histogram . ApproximateHistogram ah = buildHistogram ( 10 , org . apache . druid . query . aggregation . histogram . ApproximateHistogramPostAggregatorTest . VALUES ) ; final org . apache . druid . query . aggregation . TestFloatColumnSelector selector = ne... | org . junit . Assert . assertEquals ( ah . toHistogram ( 5 ) , approximateHistogramPostAggregator . compute ( metricValues ) ) |
getServiceAccountName ( ) { "<AssertPlaceHolder>" ; } getServiceAccountName ( ) { org . junit . Assert . assertEquals ( "dbServiceAccountName" , com . openshift . internal . restclient . model . v1 . ReplicationControllerTest . rc . getServiceAccountName ( ) ) ; } | org . junit . Assert . assertEquals ( "dbServiceAccountName" , com . openshift . internal . restclient . model . v1 . ReplicationControllerTest . rc . getServiceAccountName ( ) ) |
testComplementMap4 ( ) { int [ ] expected = new int [ ] { 0 , 1 , 2 , 3 , 4 , 5 } ; int [ ] input = new int [ ] { } ; int size = ( expected . length ) + ( input . length ) ; int [ ] complement = com . splicemachine . utils . IntArrays . complementMap ( input , size ) ; "<AssertPlaceHolder>" ; } printArrays ( int [ ] , ... | org . junit . Assert . assertArrayEquals ( printArrays ( input , size , expected , complement ) , expected , complement ) |
testGetRoot ( ) { org . peerbox . watchservice . filetree . composite . FileComponent f = rootFolder . getComponent ( rootPath ) ; "<AssertPlaceHolder>" ; } getComponent ( java . nio . file . Path ) { if ( remainingPath . equals ( getPath ( ) ) ) { return this ; } remainingPath = stripOffPrefix ( remainingPath , getPat... | org . junit . Assert . assertEquals ( f , rootFolder ) |
testOfferedTuplesDrained ( ) { final cs . bilkent . joker . operator . Tuple tuple = cs . bilkent . joker . operator . Tuple . of ( cs . bilkent . joker . engine . tuplequeue . impl . operator . PartitionedOperatorQueueTest . PARTITION_KEY_FIELD , "key1" ) ; final java . util . List < cs . bilkent . joker . operator . ... | org . junit . Assert . assertEquals ( input , result . getTuples ( 0 ) ) |
idNullTest ( ) { org . marc . everest . datatypes . generic . SET < org . marc . everest . datatypes . II > ids = org . oscarehr . e2e . model . export . body . AllergiesModelTest . nullAllergiesModel . getIds ( ) ; "<AssertPlaceHolder>" ; } getIds ( ) { return ids ; } | org . junit . Assert . assertNotNull ( ids ) |
withOneNode ( ) { "<AssertPlaceHolder>" ; } isBalanced ( treegraph . BinaryTreeNode ) { return ( isBalancedWithHeight ( root ) ) != ( - 1 ) ; } | org . junit . Assert . assertTrue ( s . isBalanced ( new treegraph . BinaryTreeNode ( 1 ) ) ) |
resumeReadingWithinCheckpoint ( ) { long fileSize = 10 ; buildCheckpoint ( ( fileSize * 3 ) ) ; for ( int i = 0 ; i < 10 ; i ++ ) { buildCompletedLog ( ( i * fileSize ) , ( ( i + 1 ) * fileSize ) ) ; } try ( alluxio . master . journal . JournalReader reader = new alluxio . master . journal . ufs . UfsJournalReader ( mJ... | org . junit . Assert . assertEquals ( ( 10 * fileSize ) , reader . getNextSequenceNumber ( ) ) |
testGetServicesByCriteria_Sorting_NameAscPaged ( ) { container . login ( org . oscm . serviceprovisioningservice . bean . SearchServiceBeanListIT . customerUserKey , org . oscm . serviceprovisioningservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . serviceprovisioningservice . bean . List < java . lang . Long > ... | org . junit . Assert . assertEquals ( expected . get ( offset ) , serviceKey ) |
assertGetConnectionsSucceed ( ) { java . util . List < java . sql . Connection > actual = jdbcBackendDataSource . getConnections ( ConnectionMode . MEMORY_STRICTLY , "ds_1" , 5 ) ; "<AssertPlaceHolder>" ; } getConnections ( org . apache . shardingsphere . core . constant . ConnectionMode , java . lang . String , int ) ... | org . junit . Assert . assertEquals ( 5 , actual . size ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.